DeviceCodeGrant
class DeviceCodeGrant extends DeviceCodeGrant
Traits
Properties
| protected bool | $includeVerificationUriComplete |
Methods
Authenticate the client before checking its permitted grants.
Create a device code grant with request-derived verification URLs.
Authenticate the client and apply its scope ceiling before creating a device authorization.
Configure whether device responses include the complete verification URI.
Claim the validated device code before issuing its token.
Issue a device code using the current request's verification URL.
Details
in
AuthenticatesClients at line 19
protected ClientEntityInterface
validateClient(ServerRequestInterface $request)
Authenticate the client before checking its permitted grants.
at line 32
__construct(DeviceCodeRepositoryInterface $deviceCodeRepository, RefreshTokenRepositoryInterface $refreshTokenRepository, DateInterval $deviceCodeTTL, UrlGenerator $url, int $retryInterval = 5)
Create a device code grant with request-derived verification URLs.
at line 45
DeviceCodeResponse
respondToDeviceAuthorizationRequest(ServerRequestInterface $request)
Authenticate the client and apply its scope ceiling before creating a device authorization.
at line 98
void
setIncludeVerificationUriComplete(bool $includeVerificationUriComplete)
Configure whether device responses include the complete verification URI.
On the worker-shared grant, the flag affects subsequent requests.
at line 111
protected AccessTokenEntityInterface
issueAccessToken(DateInterval $accessTokenTTL, ClientEntityInterface $client, string|null $userIdentifier, array $scopes = [])
Claim the validated device code before issuing its token.
at line 129
protected DeviceCodeEntityInterface
issueDeviceCode(DateInterval $deviceCodeTTL, ClientEntityInterface $client, string $verificationUri, array $scopes = [])
Issue a device code using the current request's verification URL.