AuthN: Make client params part of the identity (#61050)
* AuthN: Change client params to be a return value of authenticate * AuthN: move client params to be part of the identity
This commit is contained in:
@@ -98,9 +98,8 @@ func (s *Service) Authenticate(ctx context.Context, client string, r *authn.Requ
|
||||
return nil, true, err
|
||||
}
|
||||
|
||||
params := c.ClientParams()
|
||||
for _, hook := range s.postAuthHooks {
|
||||
if err := hook(ctx, params, identity, r); err != nil {
|
||||
if err := hook(ctx, identity, r); err != nil {
|
||||
return nil, false, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user