AuthProxy: Do not allow sessions to be assigned with other methods (#78602)

do not allow login token with other methods
This commit is contained in:
Jo
2023-11-24 11:00:53 +01:00
committed by GitHub
parent 11d4f604f5
commit 7d559bc69a
3 changed files with 9 additions and 3 deletions
+1
View File
@@ -114,6 +114,7 @@ func (c *Proxy) Authenticate(ctx context.Context, r *authn.Request) (*authn.Iden
identity, clientErr = proxyClient.AuthenticateProxy(ctx, r, username, additional)
if identity != nil {
identity.ClientParams.CacheAuthProxyKey = cacheKey
identity.AuthenticatedBy = login.AuthProxyAuthModule
return identity, nil
}
}