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

[FLI-954] JWT Auth: Support custom claim validation #2985

Open
markphelps opened this issue Apr 14, 2024 · 0 comments
Open

[FLI-954] JWT Auth: Support custom claim validation #2985

markphelps opened this issue Apr 14, 2024 · 0 comments
Labels
enhancement Created by Linear-GitHub Sync

Comments

@markphelps
Copy link
Collaborator

markphelps commented Apr 14, 2024

Allow validating custom claims in JWT auth config

https://docs.flipt.io/configuration/authentication#claim-validation

We currently support validating iss and aud. We should probably add support for sub and secondly allow users to define custom claims that they want validated.

Perhaps under a custom: section?

authentication:
  methods:
    jwt:
      enabled: true
      validate_claims:
        issuer: https://auth0.com/
        audiences: https://flipt.io/, https://flipt.com/ 
        subject: foo
        custom:
           x: y
           a: b

Originally posted by @markphelps in #2945 (comment)

FLI-954

@markphelps markphelps changed the title JWT Auth: Support custom claim validation [FLI-954] JWT Auth: Support custom claim validation Apr 14, 2024
@markphelps markphelps added the enhancement Created by Linear-GitHub Sync label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Created by Linear-GitHub Sync
Projects
Status: No status
Development

No branches or pull requests

1 participant