Свойство | Тип | Описание | |
---|---|---|---|
$accessTokenName | string | Name of the access token. | |
$clientId | string | OAuth2 Client ID. | |
$clientSecret | string | Client secret for defined Client ID. | |
$redirectUri | string | A URI where the user will be redirected after OAuth2 authorization. | |
$scope | string | Request scope, a comma-separated list of parameters. | |
$state | string | Request state. |
Метод | Описание | |
---|---|---|
getAccessTokenName ( ) : string | Returns the name of access token param. Its usually either 'access_token' or 'token' based on the OAuth2 server. | |
getClientId ( ) : string | Get client id. | |
getClientSecret ( ) : string | Get client secret. | |
getRedirectURI ( ) : string | Get the defined redirect URI. | |
getScope ( ) : string | Get the defined scope. | |
getServerClassName ( ) : string | Returns the name of current OAuth2 server class. | |
getState ( ) : string | Get the state parameter. | |
setOAuth2Server ( string $serverName, null | array $options = null ) | Currently supported servers are: [facebook, google, linkedin]. | |
setScope ( string $scope ) : void | Set the request scope. | |
setState ( string $state ) : void. | Set the state parameter. |
public getAccessTokenName ( ) : string | ||
Результат | string |
public getClientId ( ) : string | ||
Результат | string | Client id. |
public getClientSecret ( ) : string | ||
Результат | string | Client secret. |
public getRedirectURI ( ) : string | ||
Результат | string | Redirect URI. |
public getServerClassName ( ) : string | ||
Результат | string |
protected string $accessTokenName | ||
Результат | string |
protected string $clientSecret | ||
Результат | string |
protected string $redirectUri | ||
Результат | string |
protected string $scope | ||
Результат | string |