You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The question is what to use as user id when sub claim is not present.
@AlexanderYastrebov
I apologize as I might not be fully aware of the context but do we have any other data that might be suitable in the JWT and if that is not possible we could panic for now and identify the correct key later .
I looked a but deeper there is a UserInfo struct and maybe we can use the username from there
Describe the bug
if
oidcclaimsquery
get a jwt token that doesn't havesub
for any reason it will fail to castnil
to string.skipper/filters/auth/oidc_introspection.go
Line 134 in 00ff742
To Reproduce
use a token without
sub
Expected behavior
Better error handling instead of failing without clue what is happening.
The text was updated successfully, but these errors were encountered: