Method | Description | |
---|---|---|
__construct ( |
Base constructor. | |
getAccessTokenUrl ( ) : string | Returns the path to the page where we request the access token. | |
getAuthorizeUrl ( ) : string | Returns the path to OAuth2 authorize page. | |
getServerName ( ) : string | Returns the server name. | |
getUserDetails ( ) : |
Tries to get user details for the current OAuth2 server. |
Method | Description | |
---|---|---|
getUserDetailsTargetData ( ) : array | Returns an array [url, params]. | |
processUserDetails ( array $result ) : |
This method is called automatically when the OAuth2 server returns a response containing user details. |
Method | Description | |
---|---|---|
rawRequest ( string $url, array $parameters = [] ) : array | Preforms an raw request on the current OAuth2 server. |
abstract public getAccessTokenUrl ( ) : string | ||
return | string | Url to access token page. |
abstract public getAuthorizeUrl ( ) : string | ||
return | string | Url to OAuth2 authorize page. |
abstract public getServerName ( ) : string | ||
return | string |
public getUserDetails ( ) : |
||
return |
abstract protected getUserDetailsTargetData ( ) : array | ||
return | array |
abstract protected processUserDetails ( array $result ) : |
||
$result | array | OAuth2 server response. |
return |