AuthorizationServer
class AuthorizationServer extends AuthorizationServer
Methods
Build a configured server whose request entry points follow current settings.
Validate authorization using the current server settings.
Validate authorization on the selected server without selecting it again.
Complete authorization within the consent controller's issuance context.
Complete authorization on the selected server.
Issue a device code using freshly selected settings.
Issue a device authorization response on the selected server.
Complete device authorization within its consent context.
Complete device authorization on the selected server.
Build and sign a token response before committing its issuance.
Generate the token response on the server selected for the pinned key.
Normalize protocol fields and capture the operation's requested resources.
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.
at line 46
AuthorizationRequestInterface
validateAuthorizationRequest(ServerRequestInterface $request)
Validate authorization using the current server settings.
at line 54
protected AuthorizationRequestInterface
validateAuthorization(ServerRequestInterface $request)
Validate authorization on the selected server without selecting it again.
at line 80
ResponseInterface
completeAuthorizationRequest(AuthorizationRequestInterface $authRequest, ResponseInterface $response)
Complete authorization within the consent controller's issuance context.
at line 92
protected ResponseInterface
completeAuthorization(AuthorizationRequestInterface $authRequest, ResponseInterface $response)
Complete authorization on the selected server.
at line 100
ResponseInterface
respondToDeviceAuthorizationRequest(ServerRequestInterface $request, ResponseInterface $response)
Issue a device code using freshly selected settings.
at line 108
protected ResponseInterface
issueDeviceAuthorization(ServerRequestInterface $request, ResponseInterface $response)
Issue a device authorization response on the selected server.
at line 116
void
completeDeviceAuthorizationRequest(string $deviceCode, string $userId, bool $userApproved)
Complete device authorization within its consent context.
at line 130
protected void
completeDeviceAuthorization(string $deviceCode, string $userId, bool $userApproved)
Complete device authorization on the selected server.
at line 138
ResponseInterface
respondToAccessTokenRequest(ServerRequestInterface $request, ResponseInterface $response)
Build and sign a token response before committing its issuance.
at line 150
protected ResponseInterface
issueAccessTokenResponse(ServerRequestInterface $request, ResponseInterface $response)
Generate the token response on the server selected for the pinned key.
at line 158
protected ServerRequestInterface
prepareRequest(ServerRequestInterface $request)
Normalize protocol fields and capture the operation's requested resources.
at line 171
protected AuthorizationServer
currentServer()
Get the configured server for the current operation.