Свойство | Type | Description | |
---|---|---|---|
$broker | string | My identifier, given by SSO provider. | |
$token | string | Session token of the client |
Свойство | Type | Description | |
---|---|---|---|
$secret | string | My secret word, given by SSO provider. | |
$url | string | Url of SSO server | |
$userinfo | array | User info recieved from the server. |
Méthode | Description | |
---|---|---|
__call ( string $fn, array $args ) : mixed | Magic method to do arbitrary request | |
__construct ( string $url, string $broker, string $secret ) | Class constructor | |
attach ( string | true $returnUrl = null ) | Attach our session to the user's session on the SSO server. | |
clearToken ( ) | Clears session token | |
generateToken ( ) | Generate session token | |
getAttachUrl ( array $params = [] ) : string | Get URL to attach session at SSO server. | |
getUserInfo ( ) : object | null | Get user information. | |
isAttached ( ) : boolean | Check if we have an SSO token. | |
login ( string $username = null, string $password = null ) : array | Log the client in at the SSO server. | |
logout ( ) | Logout at sso server. |
Méthode | Description | |
---|---|---|
getCookieName ( ) : string | Get the cookie name. | |
getRequestUrl ( string $command, array $params = [] ) : string | Get the request url for a command | |
getSessionId ( ) : string | Generate session id from session key | |
request ( string $method, string $command, array | string $data = null ) : array | object | Execute on SSO server. |
public getAttachUrl ( array $params = [] ) : string | ||
$params | array | |
Résultat | string |
protected getCookieName ( ) : string | ||
Résultat | string |
protected getSessionId ( ) : string | ||
Résultat | string |
public getUserInfo ( ) : object | null | ||
Résultat | object | null |
public isAttached ( ) : boolean | ||
Résultat | boolean |
public string $broker | ||
Résultat | string |
protected string $secret | ||
Résultat | string |
protected array $userinfo | ||
Résultat | array |