2727 * class that manges settings for client for this IdP.
2828 */
2929class client {
30- /**@var int id primary for this client in the database */
30+ /** @var int $ id primary for this client in the database */
3131 public int $ id ; // Has to be pulic now because the way its send to database in update.
3232
33- /**@var string $clientid name of the client */
33+ /** @var string $clientid name of the client */
3434 public string $ clientid ;
35- /**@var string $clientsecret password of this client*/
35+
36+ /** @var string $clientsecret password of this client*/
3637 public string $ clientsecret ;
37- /**@var string $redirecturi addres of the clinet to send user to after identification*/
38+
39+ /** @var string $redirecturi addres of the clinet to send user to after identification*/
3840 public string $ redirecturi ;
39- /**@var array $granttypes types of oauth flows server will accept for this client*/
41+
42+ /** @var array $granttypes types of oauth flows server will accept for this client*/
4043 public array $ granttypes ;
41- /**@var array $scopes the client is allowed to request, which in our case are the claims*/
44+
45+ /** @var array $scope the client is allowed to request, which in our case are the claims*/
4246 public array $ scope ;
43- /**@var int $userid if client grantype used is client_authenticat. which user the client inperonates */
47+
48+ /** @var int $userid if client grantype used is client_authenticat. which user the client inperonates */
4449 public int $ userid ;
45- /**@var int $noconfirmation if user is asked to confirm that client is allowed to get this information of the user*/
50+
51+ /** @var int $noconfirmation if user is asked to confirm that client is allowed to get this information of the user*/
4652 public int $ noconfirmation ;
4753
4854 /**
4955 * Initialze the client class.
56+ * @param int $clientid
57+ * @param string $redirecturi
58+ * @param array $granttypes
59+ * @param array $scope
60+ * @param int $userid
61+ * @param bool $noconfirmation
5062 */
5163 public function __construct ($ clientid , $ redirecturi , $ granttypes , $ scope , $ userid , $ noconfirmation ) {
5264 $ this ->clientid = $ clientid ;
@@ -71,6 +83,8 @@ public function id() {
7183 // TODO Use $storage->getClientDetails instead .
7284 /**
7385 * Get client by client id from database.
86+ *
87+ * @param int $id clientid
7488 */
7589 public static function get_client_by_id ($ id ) {
7690 global $ DB ;
@@ -130,6 +144,8 @@ public function delete() {
130144
131145 /**
132146 * Generate public private key pair
147+ *
148+ * @param int $clientid
133149 */
134150 public static function generate_key_pair ($ clientid ) {
135151 global $ DB ;
0 commit comments