Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Invalid token_type SessionToken #55

@nsklikas

Description

@nsklikas

The token_type in the SessionToken describes the class of the token (access_token, refresh_token, ...).

In the OAuth2 spec token_type is used to describe an access_token(https://datatracker.ietf.org/doc/html/rfc6749#section-7.1)

token.token_type is used in the introspection endpoint to get the value of the token_type(https://github.com/IdentityPython/oidc-op/blob/develop/src/oidcop/oauth2/introspection.py#L47), which is wrong (it shouldn't be access_token, but Bearer)

We had this discussion on slack some time ago, I am going to try to document our decision so that we can move forward with implementing it.
We are going to have the following toke fields: token_type, token_syntax, token_class:

@rohe @peppelinux what do you think? Should we start implementing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions