Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Add additional parameters to jwt enrichment call; Allow complete overwriting of token #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

com4
Copy link
Contributor

@com4 com4 commented Dec 23, 2020

  • Adds Oauth token content, oauth2_provider's token_obj model, and
    django-oauth-toolkit-jwt's current_claims as parameters to
    JWT_PAYLOAD_ENRICHER. This will give the user more control over the
    data that is included in their JWT
  • Add JWT_PAYLOAD_ENRICHER_OVERWRITE setting (default is
    False). Setting this to true will allow the user total control over
    the claims included.

Fixes #29

- Adds Oauth token `content`, oauth2_provider's `token_obj` model, and
  django-oauth-toolkit-jwt's `current_claims` as parameters to
  `JWT_PAYLOAD_ENRICHER`. This will give the user more control over the
  data that is included in their JWT
- Add `JWT_PAYLOAD_ENRICHER_OVERWRITE` setting (default is
  False). Setting this to true will allow the user total control over
  the claims included.

Fixes humanitec#29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow more robust JWT enrichment
1 participant