mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-25 06:30:13 +05:30
Fixed request attribute
This commit is contained in:
parent
721a31534e
commit
5074ad9a6c
@ -87,7 +87,8 @@ class BearerTokenResponse extends AbstractResponseType
|
||||
}
|
||||
|
||||
// Return the request with additional attributes
|
||||
return $request->withAttribute('oauth_access_token', $token->getClaim('jti'))
|
||||
return $request
|
||||
->withAttribute('oauth_access_token_id', $token->getClaim('jti'))
|
||||
->withAttribute('oauth_client_id', $token->getClaim('aud'))
|
||||
->withAttribute('oauth_user_id', $token->getClaim('sub'))
|
||||
->withAttribute('oauth_scopes', $token->getClaim('scopes'));
|
||||
|
Loading…
Reference in New Issue
Block a user