Skip to content

Commit

Permalink
oid_introspection: add MakeTokenContainer
Browse files Browse the repository at this point in the history
This method allows third-party filters to set the oidcClaimsCacheKey
which enables the use of the oidcClaimsQuery filter.
  • Loading branch information
Adrien Surée committed Nov 15, 2024
1 parent f6f9efb commit 4a0c06c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions filters/auth/oidc_introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ func NewOIDCQueryClaimsFilter() filters.Spec {
}
}

func MakeTokenContainer(h map[string]interface{}) tokenContainer {
return tokenContainer{
Claims: h,
}
}

func (spec *oidcIntrospectionSpec) Name() string {
switch spec.typ {
case checkOIDCQueryClaims:
Expand Down

0 comments on commit 4a0c06c

Please sign in to comment.