Skip to content

Commit

Permalink
feat: use security memberschips (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel authored Feb 11, 2025
1 parent cb34dfb commit 9da3cd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
github.com/icza/dyno v0.0.0-20230330125955-09f820a8d9c0
github.com/mattn/go-isatty v0.0.20
github.com/meilisearch/meilisearch-go v0.27.2
github.com/metal-stack/security v0.9.2
github.com/metal-stack/security v0.9.3
github.com/metal-stack/v v1.0.3
github.com/nsqio/go-nsq v1.1.0
github.com/nsqio/nsq v1.3.0
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,8 @@ github.com/mdlayher/socket v0.5.0 h1:ilICZmJcQz70vrWVes1MFera4jGiWNocSkykwwoy3XI
github.com/mdlayher/socket v0.5.0/go.mod h1:WkcBFfvyG8QENs5+hfQPl1X6Jpd2yeLIYgrGFmJiJxI=
github.com/meilisearch/meilisearch-go v0.27.2 h1:3G21dJ5i208shnLPDsIEZ0L0Geg/5oeXABFV7nlK94k=
github.com/meilisearch/meilisearch-go v0.27.2/go.mod h1:SxuSqDcPBIykjWz1PX+KzsYzArNLSCadQodWs8extS0=
github.com/metal-stack/security v0.9.2-0.20250124141228-12ba39a8ea11 h1:6BmXpvAMA6rU83pLvAm1q4QKxCATSQ2y7P6+5aFPYd4=
github.com/metal-stack/security v0.9.2-0.20250124141228-12ba39a8ea11/go.mod h1:ENm5kPjqh4uYvn79sAIxd6GZBwtF2GSsGdkLELrB/D4=
github.com/metal-stack/security v0.9.2 h1:WH5LYwKccoEgS532f5qwonS7zX4/PJJO1RQ6R6Md410=
github.com/metal-stack/security v0.9.2/go.mod h1:ENm5kPjqh4uYvn79sAIxd6GZBwtF2GSsGdkLELrB/D4=
github.com/metal-stack/security v0.9.3 h1:ZF5rGeZ4fIFe0DFFQWkXsUDCzODyjdrpvKmeaLOz9lo=
github.com/metal-stack/security v0.9.3/go.mod h1:ENm5kPjqh4uYvn79sAIxd6GZBwtF2GSsGdkLELrB/D4=
github.com/metal-stack/v v1.0.3 h1:Sh2oBlnxrCUD+mVpzfC8HiqL045YWkxs0gpTvkjppqs=
github.com/metal-stack/v v1.0.3/go.mod h1:YTahEu7/ishwpYKnp/VaW/7nf8+PInogkfGwLcGPdXg=
github.com/miekg/dns v1.1.58 h1:ca2Hdkz+cDg/7eNF6V56jjzuZ4aCAE+DbVkILdQWG/4=
Expand Down
2 changes: 1 addition & 1 deletion jwt/sec/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func genericOidcExtractUser(ic *security.IssuerConfig, claims *security.GenericO
if ic.Annotations != nil {
directory = ic.Annotations[OidcDirectory]
}
grps, err := fn(ic.Tenant, directory, claims.Roles)
grps, err := fn(ic.Tenant, directory, claims.Memberships())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9da3cd2

Please sign in to comment.