-
Notifications
You must be signed in to change notification settings - Fork 1
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
PSG-4625 validate jwt audience #89
base: main
Are you sure you want to change the base?
Conversation
authentication.go
Outdated
@@ -105,5 +106,14 @@ func (a *App) ValidateAuthToken(authToken string) (string, bool) { | |||
return "", false | |||
} | |||
|
|||
audience, ok := claims["aud"].([]string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the aud
value may be a []string
or string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call out! Will keep this in mind with the other languages as well.
Quality Gate passedIssues Measures |
What's New?
Add validation for jwt audience.
Type of change
Checklist: