class AuthorizationServer extends AuthorizationServer

Methods

__construct(ClientRepositoryInterface $clientRepository, AccessTokenRepositoryInterface $accessTokenRepository, ScopeRepositoryInterface $scopeRepository, CryptKeyInterface|string $privateKey, Key|string $encryptionKey, ResponseTypeInterface|null $responseType, ServerFactory $servers, bool $personalAccess = false)

Build a configured server whose request entry points follow current settings.

AuthorizationRequestInterface
validateAuthorizationRequest(ServerRequestInterface $request)

Validate authorization using the current server settings.

AuthorizationRequestInterface
validateAuthorization(ServerRequestInterface $request)

Validate authorization on the selected server without selecting it again.

ResponseInterface
completeAuthorizationRequest(AuthorizationRequestInterface $authRequest, ResponseInterface $response)

Complete authorization within the consent controller's issuance context.

ResponseInterface
completeAuthorization(AuthorizationRequestInterface $authRequest, ResponseInterface $response)

Complete authorization on the selected server.

ResponseInterface
respondToDeviceAuthorizationRequest(ServerRequestInterface $request, ResponseInterface $response)

Issue a device code using freshly selected settings.

ResponseInterface
issueDeviceAuthorization(ServerRequestInterface $request, ResponseInterface $response)

Issue a device authorization response on the selected server.

void
completeDeviceAuthorizationRequest(string $deviceCode, string $userId, bool $userApproved)

Complete device authorization within its consent context.

void
completeDeviceAuthorization(string $deviceCode, string $userId, bool $userApproved)

Complete device authorization on the selected server.

ResponseInterface
respondToAccessTokenRequest(ServerRequestInterface $request, ResponseInterface $response)

Build and sign a token response before committing its issuance.

ResponseInterface
issueAccessTokenResponse(ServerRequestInterface $request, ResponseInterface $response)

Generate the token response on the server selected for the pinned key.

ServerRequestInterface
prepareRequest(ServerRequestInterface $request)

Normalize protocol fields and capture the operation's requested resources.

currentServer()

Get the configured server for the current operation.

Details

at line 28
__construct(ClientRepositoryInterface $clientRepository, AccessTokenRepositoryInterface $accessTokenRepository, ScopeRepositoryInterface $scopeRepository, CryptKeyInterface|string $privateKey, Key|string $encryptionKey, ResponseTypeInterface|null $responseType, ServerFactory $servers, bool $personalAccess = false)

Build a configured server whose request entry points follow current settings.

Parameters

ClientRepositoryInterface $clientRepository
AccessTokenRepositoryInterface $accessTokenRepository
ScopeRepositoryInterface $scopeRepository
CryptKeyInterface|string $privateKey
Key|string $encryptionKey
ResponseTypeInterface|null $responseType
ServerFactory $servers
bool $personalAccess

at line 46
AuthorizationRequestInterface validateAuthorizationRequest(ServerRequestInterface $request)

Validate authorization using the current server settings.

Parameters

ServerRequestInterface $request

Return Value

AuthorizationRequestInterface

at line 54
protected AuthorizationRequestInterface validateAuthorization(ServerRequestInterface $request)

Validate authorization on the selected server without selecting it again.

Parameters

ServerRequestInterface $request

Return Value

AuthorizationRequestInterface

at line 80
ResponseInterface completeAuthorizationRequest(AuthorizationRequestInterface $authRequest, ResponseInterface $response)

Complete authorization within the consent controller's issuance context.

Parameters

AuthorizationRequestInterface $authRequest
ResponseInterface $response

Return Value

ResponseInterface

at line 92
protected ResponseInterface completeAuthorization(AuthorizationRequestInterface $authRequest, ResponseInterface $response)

Complete authorization on the selected server.

Parameters

AuthorizationRequestInterface $authRequest
ResponseInterface $response

Return Value

ResponseInterface

at line 100
ResponseInterface respondToDeviceAuthorizationRequest(ServerRequestInterface $request, ResponseInterface $response)

Issue a device code using freshly selected settings.

Parameters

ServerRequestInterface $request
ResponseInterface $response

Return Value

ResponseInterface

at line 108
protected ResponseInterface issueDeviceAuthorization(ServerRequestInterface $request, ResponseInterface $response)

Issue a device authorization response on the selected server.

Parameters

ServerRequestInterface $request
ResponseInterface $response

Return Value

ResponseInterface

at line 116
void completeDeviceAuthorizationRequest(string $deviceCode, string $userId, bool $userApproved)

Complete device authorization within its consent context.

Parameters

string $deviceCode
string $userId
bool $userApproved

Return Value

void

at line 130
protected void completeDeviceAuthorization(string $deviceCode, string $userId, bool $userApproved)

Complete device authorization on the selected server.

Parameters

string $deviceCode
string $userId
bool $userApproved

Return Value

void

at line 138
ResponseInterface respondToAccessTokenRequest(ServerRequestInterface $request, ResponseInterface $response)

Build and sign a token response before committing its issuance.

Parameters

ServerRequestInterface $request
ResponseInterface $response

Return Value

ResponseInterface

at line 150
protected ResponseInterface issueAccessTokenResponse(ServerRequestInterface $request, ResponseInterface $response)

Generate the token response on the server selected for the pinned key.

Parameters

ServerRequestInterface $request
ResponseInterface $response

Return Value

ResponseInterface

at line 158
protected ServerRequestInterface prepareRequest(ServerRequestInterface $request)

Normalize protocol fields and capture the operation's requested resources.

Parameters

ServerRequestInterface $request

Return Value

ServerRequestInterface

at line 171
protected AuthorizationServer currentServer()

Get the configured server for the current operation.

Return Value

AuthorizationServer