Skip to content

Commit

Permalink
Addresses feedback
Browse files Browse the repository at this point in the history
Signed-off-by: wassafshahzad <[email protected]>
  • Loading branch information
wassafshahzad committed Feb 8, 2025
1 parent 3cfb9fa commit 1dfa883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filters/auth/oidc_introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (filter *oidcIntrospectionFilter) Request(ctx filters.FilterContext) {

sub, ok := token.Claims["sub"].(string)
if !ok {
unauthorized(ctx, sub, invalidSub, "", "")
unauthorized(ctx, r.Host, invalidSub, "", "")
return
}

Expand Down
2 changes: 1 addition & 1 deletion filters/auth/oidc_introspection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func TestOIDCQueryClaimsFilter(t *testing.T) {
expectErr: false,
},
{
msg: "secure sub/path is not permitted",
msg: "missing sub claim is not permitted",
args: []interface{}{
"/login:groups.#[==\"AppX-Test-Users\"]",
"/:@_:email%\"*@example.org\"",
Expand Down

0 comments on commit 1dfa883

Please sign in to comment.