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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user