Skip to content

Allow nest token_field_name with OAuth2ClientCredentials #119

@valentincalomme

Description

@valentincalomme

My use case is simple, I need to use a OAuth2ClientCredentials authentication flow, but my access token is not returned at the top-level of the response's JSON body, instead, the field is nested, i.e.

{
  "tokenData": {
    "access_token": "tYGB6EHKxzMs9ecUFhPxDtXflaPKqHACIvcrd4Wx",
    "token_type": "Bearer",
    "expires_in": 60000
  },
  "errors": [],
  "success": true
}

My proposed solution would be to allow the token_field_name parameter to be a tuple, to reflect the nested structure (i.e. ("tokenData", "access_token"))

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