Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow more robust JWT enrichment
1 participant