Skip to content

Commit 0e75f83

Browse files
authored
added confidential method
1 parent 9b79275 commit 0e75f83

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Passport/Client.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,15 @@ public function firstParty()
7878
public function skipsAuthorization()
7979
{
8080
return false;
81-
}
81+
}
82+
83+
/**
84+
* Determine if the client is a confidential client.
85+
*
86+
* @return bool
87+
*/
88+
public function confidential()
89+
{
90+
return ! empty($this->secret);
91+
}
8292
}

0 commit comments

Comments
 (0)