Open
Description
Hello!
The standard implementation of client_credentials
grant_type uses a RetrieveError
, which is really useful because it provides the raw response body and error code.
Lines 184 to 198 in 3e64809
As I noticed, the stsexchange
implementation wraps the raw error message, which makes it difficult to properly handle custom errors from different OIDC providers.
oauth2/google/internal/stsexchange/sts_exchange.go
Lines 89 to 91 in 3e64809
It would be great if stsexchange
wrapped errors the same way client_credentials
do.
Metadata
Metadata
Assignees
Labels
No labels