Class AuthorizationCodeFlow
Implementation of Authorization Code Flow
-
Authoritarian\Flow\AbstractFlow
-
Authoritarian\Flow\AuthorizationCodeFlow
Methods summary
public
|
#
__construct( string $authorization_url = null )
Parameters
- $authorization_url
string $authorization_url OAuth 2's Authorization endpoint url
|
public
|
#
setAuthorizationUrl( string $authorization_url )
Parameters
- $authorization_url
string $authorization_url OAuth 2's Authorization endpoint url
|
public
|
#
setCode( string $code )
Parameters
- $code
string $code The authorization code retrieved in the callback page
|
public
|
#
setRedirectUri( string $uri )
Parameters
- $uri
string $uri the callback URI to retrieve the authorization code
|
public
|
#
setState( string $state )
Parameters
- $state
string $state The app's state to be resumed at the callback
|
public
string
|
#
getAuthUrl( )
Get the URL to user's authentication and authorization
Get the URL to user's authentication and authorization
Returns
string
|
public
Guzzle\Http\Message\RequestInterface
|
#
getRequest( )
Get the request to the Access Token
Get the request to the Access Token
Returns
Guzzle\Http\Message\RequestInterface
Throws
Overrides
|