Skip to content

Logout because of expired access token #165

@xi

Description

@xi

Issue Description

May be related to #100.

After some time after the login, I get logged out with the message "OAuth: An error occured during the request to the oauth provider: [HTTP 401]".

As far as I understand, this plugin is checking at some point whether the access token is still valid, or, if it is not, tries to get a new one using a refresh token.

This is what I found in the OIDC spec:

Access Tokens might not be revocable by the Authorization Server. Access Token lifetimes SHOULD therefore be kept to single use or very short lifetimes.

If ongoing access to the UserInfo Endpoint or other Protected Resources is required, a Refresh Token can be used. The Client can then exchange the Refresh Token at the Token Endpoint for a fresh short-lived Access Token that can be used to access the resource.

If I understand the spec correctly, the access token should only be used to fetch user info or other protected data. There is no mention that the client session should expire with the access token. So I think this is a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions