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

Feature/SK-721 | Add JWT verification (decoding) #543

Merged
merged 16 commits into from
Mar 19, 2024
Merged

Conversation

Wrede
Copy link
Member

@Wrede Wrede commented Mar 11, 2024

Adds authentication decorators using JWT. Introducing RBAC with custom claims "role" in issued tokens. Current roles are:

  • "client"
  • "combiner"
  • "admin"

If env FEDN_JWT_SECRET_KEY is set, JWT verification are enabled.
Custom claims can be added by setting FEDN_JWT_CUSTOM_CLAIM_KEY and verified against FEDN_JWT_CUSTOM_CLAIM_VALUE.

FEDN_AUTH_SCHEME, default to "Token".

OBS that FEDn do not issue the tokens.

@Wrede Wrede requested a review from niklastheman March 11, 2024 15:47
@Wrede Wrede merged commit d67ec4b into master Mar 19, 2024
15 checks passed
@Wrede Wrede deleted the feature/SK-721 branch March 19, 2024 13:38
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.

2 participants