Authn: Sync authlib and update how we construct authn client interceptor (#101124)

* Sync authlib and update how we construct authn client interceptor

* Remove namespace from checker
This commit is contained in:
Karl Persson
2025-02-26 09:22:09 +01:00
committed by GitHub
parent a7ecb19c31
commit fa74d1c36d
25 changed files with 105 additions and 107 deletions
+3 -3
View File
@@ -61,7 +61,7 @@ func List[T Resource](
return nil, err
}
check := func(_, _, _ string) bool { return true }
check := func(_, _ string) bool { return true }
if ac != nil {
var err error
check, err = ac.Compile(ctx, ident, authlib.ListRequest{
@@ -82,7 +82,7 @@ func List[T Resource](
}
for _, item := range first.Items {
if !check(ns.Value, item.AuthID(), "") {
if !check(item.AuthID(), "") {
continue
}
res.Items = append(res.Items, item)
@@ -105,7 +105,7 @@ outer:
break outer
}
if !check(ns.Value, item.AuthID(), "") {
if !check(item.AuthID(), "") {
continue
}