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

Include JWT sub field in logs #1103

Closed
wants to merge 5 commits into from

Conversation

ahmadelrouby
Copy link

In reference to #1051

  • Separated the decoding and authorization phases of a JWT token
  • Added a new middleware that performs the decoding and stores the claims as part of the request
  • Use request context to query the JWT's Subject value and dump them in the JSON logs
  • Added a flag in the context to indicate previous decoding (avoid breaking existing interface)

Copy link

linux-foundation-easycla bot commented Sep 6, 2024

CLA Not Signed

@ahmadelrouby
Copy link
Author

Screenshot from 2024-09-06 16-17-18

As shown in the screenshot, the field req_sub contains the subject "fake_uss" created for this specific token.

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.

1 participant