Method |
Description |
|
__construct ( AbstractOAuth2 $instance ) |
Base constructor. |
|
getAccessToken ( ) : string |
Get access token. |
|
getAccessTokenName ( ) : string |
Returns the name of access token param. Its usually either 'access_token' or 'token' based on the OAuth2 server. |
|
getAuthenticationUrl ( ) : string |
Returns the authentication url. |
|
getCertificate ( ) : string |
Returns the path to certificate. |
|
getClientId ( ) : string |
Get client id. |
|
getClientSecret ( ) : string |
Get client secret. |
|
getRedirectURI ( ) : string |
Get the defined redirect URI. |
|
getScope ( ) : string |
Get the defined scope. |
|
getState ( ) : string |
Get the state parameter. |
|
request ( ) : AbstractServer |
|
|
requestAccessToken ( ) : string |
Requests the access token from the OAuth server. |
|
setAccessToken ( string $accessToken ) : void |
Set the access token. |
|
setCertificate ( string $pathToCertificate ) : void |
Set the certificate used by OAuth2 requests. |
|
setScope ( string $scope ) : void |
Set the request scope. |
|
setState ( string $state ) : void. |
Set the state parameter. |
|