Method |
Description |
|
authCodeRequestDeniedRedirectUri ( ) : string |
Generate a redirect uri when the auth code request is denied by the user. |
|
checkAuthCodeRequest ( ) : null |
Check the validity of the auth code request. |
|
getAccessToken ( ) : League\OAuth2\Server\Entity\AccessTokenEntity |
Get the current access token for the session. |
|
getAuthCodeRequestParam ( $key, null $default = null ) : mixed |
Get a single parameter from the auth code request parameters. |
|
getAuthCodeRequestParams ( ) : array |
Get the Auth Code request parameters. |
|
getChecker ( ) : League\OAuth2\Server\ResourceServer |
Get the checker. |
|
getClientId ( ) : string |
Get the client id of the current request. |
|
getIssuer ( ) : League\OAuth2\Server\AuthorizationServer |
Get the issuer. |
|
getRedirectUriGenerator ( ) : LucaDegasperi\OAuth2Server\RedirectUri |
Get the RedirectUri generator instance. |
|
getResourceOwnerId ( ) : string |
Get the resource owner ID of the current request. |
|
getResourceOwnerType ( ) : string |
Get the resource owner type of the current request (client or user). |
|
getScopes ( ) : array |
get the scopes associated with the current request. |
|
hasScope ( string | array $scope ) : boolean |
Check if the current request has all the scopes passed. |
|
issueAccessToken ( ) : array |
Issue an access token if the request parameters are valid. |
|
issueAuthCode ( string $ownerType, string $ownerId, array $params = [] ) : string |
Issue an auth code. |
|
setRedirectUriGenerator ( $redirectUri ) |
Set the RedirectUri generator instance. |
|
setRequest ( Request $request ) |
Set the request to use on the issuer and checker. |
|
setTokenType ( League\OAuth2\Server\TokenType\TokenTypeInterface $tokenType ) |
Set the token type to use. |
|
validateAccessToken ( boolean $httpHeadersOnly = false, string | null $accessToken = null ) : mixed |
Validate a request with an access token in it. |
|