Skip to content

Can I please see a practivcal example for ClaimAssertion? #116

Closed Answered by sevensolutions
ovizii asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ovizii
your config looks ok but it requires your token to contain a claim called "groups". If you enable debug logging in the middleware you should see the available claims in the console.

Btw: Which provider are you using?
Depending on your provider, you may need to map this information into your token first.

Edit: Oh sorry your config is wrong:

Authorization:
  AssertClaims:
    - name: "groups"
      allOf: ["admins"]

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ovizii
Comment options

@sevensolutions
Comment options

Answer selected by ovizii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants