We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 262c326 commit c7467c4Copy full SHA for c7467c4
filters/auth/oidc_introspection.go
@@ -131,8 +131,13 @@ func (filter *oidcIntrospectionFilter) Request(ctx filters.FilterContext) {
131
return
132
}
133
134
- sub := token.Claims["sub"].(string)
135
- authorized(ctx, sub)
+ sub, ok := token.Claims["sub"]
+ if ok {
136
+ authorized(ctx, sub.(string))
137
+ } else {
138
+ sub := token.Subject
139
+ authorized(ctx, sub)
140
+ }
141
142
143
func (filter *oidcIntrospectionFilter) Response(filters.FilterContext) {}
0 commit comments