Skip to content

Add serialization support for DPoP tokens #122

@snarfed

Description

@snarfed
  • requests_oauth2client version: head
  • Python version: 3.12.8
  • Operating System: macOS

Description

Hi again! I tried to use BearerTokenSerializer to serialize a DPoPToken, and it seemed to serialize ok, but deserializing raised UnsupportedTokenType: Unsupported token_type: DPoP:

if token_type.title() != self.TOKEN_TYPE.title():
raise UnsupportedTokenType(token_type)

So, looks like we need a DPoPTokenSerializer? Happy to whip up a PR for that, should hopefully be a pretty minimal subclass of BearerTokenSerializer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions