Class AbstractGrant
Represents a type of authorization grant.
An authorization grant is a credential representing the resource owner's authorization (to access its protected resources) used by the client to obtain an access token. OAuth 2.0 defines four grant types -- authorization code, implicit, resource owner password credentials, and client credentials -- as well as an extensibility mechanism for defining additional types.
- League\OAuth2\Client\Grant\AbstractGrant uses League\OAuth2\Client\Tool\RequiredParameterTrait
Direct known subclasses
League\OAuth2\Client\Grant\AuthorizationCode, League\OAuth2\Client\Grant\ClientCredentials, League\OAuth2\Client\Grant\Password, League\OAuth2\Client\Grant\RefreshToken
Abstract
Namespace: League\OAuth2\Client\Grant
Link: Authorization Grant (RFC 6749, ยง1.3)
Located at src/Grant/AbstractGrant.php
Namespace: League\OAuth2\Client\Grant
Link: Authorization Grant (RFC 6749, ยง1.3)
Located at src/Grant/AbstractGrant.php
abstract protected
string
|
|
abstract protected
array
|
|
public
string
|
#
__toString( )
Returns this grant's name as its string representation. This allows for string interpolation when building URL query parameters. |
public
array
|
#
prepareRequestParameters( array $defaults, array $options )
Prepares an access token request's parameters by checking that all required parameters are set, then merging with any given defaults. |