-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
Services often need to add their own claims to tokens to manage what users are allowed to do in a system. OIDC providers like Okta, Auth0, and others allow their users to add claims via configuration and integrations to support this. How can this be done with mockoidc? One can decode the access token to get the claims.
I tried building a custom user object:
type myUserObject struct {
mockoidc.MockUser
PhoneVerified bool
}with the Claims() method adding the additional data to the jwt.Claims, but I still only get the original data - nothing in the way of the custom claims I added.
What am I missing?
akosyakov and mlaflamm
Metadata
Metadata
Assignees
Labels
No labels