Skip to content

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

@markphelps

Description

@markphelps

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementCreated by Linear-GitHub Syncv1Flipt v1

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions