mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
fix(oauth2): correctly return an error on client_credentials and jwt_profile (#8092)
# Which Problems Are Solved When an error occurred during the oidc session creation from client_credentials or jwt_profile, the error was ignored. # How the Problems Are Solved Return the error. # Additional Changes None. # Additional Context - relates to #7822 - noticed internally - backport to 2.53.x
This commit is contained in:
@@ -46,6 +46,9 @@ func (s *Server) ClientCredentialsExchange(ctx context.Context, r *op.ClientRequ
|
||||
nil,
|
||||
false,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return response(s.accessTokenResponseFromSession(ctx, client, session, "", "", false, true, false, false))
|
||||
}
|
||||
|
Reference in New Issue
Block a user