Skip to content

Access Token expiry is not checked in BearerTokenValidator #267

@raziel057

Description

@raziel057

It's strange to me that when using server to server Auth based on client_id / client_secret, the Access token is generated with an expiry datetime persisted in DB and present in the Token but not validated by the server.

In BearerTokenValidator::validateAuthorization only revokation is validated:

// Check if token has been revoked
if ($this->accessTokenRepository->isAccessTokenRevoked($claims->get('jti'))) {
    throw OAuthServerException::accessDenied('Access token has been revoked');
}

Is it expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions