Skip to content

Commit

Permalink
added confidential method
Browse files Browse the repository at this point in the history
  • Loading branch information
pyaehein authored Dec 7, 2019
1 parent 9b79275 commit 0e75f83
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Passport/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,15 @@ public function firstParty()
public function skipsAuthorization()
{
return false;
}
}

/**
* Determine if the client is a confidential client.
*
* @return bool
*/
public function confidential()
{
return ! empty($this->secret);
}
}

0 comments on commit 0e75f83

Please sign in to comment.