You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I chose oauth2/google/externalaccount package as the basis for my implementation of token-exchange grant-type on the client side.
As I see it, this token exchange configuration supports providing a ClientID:
But it is only used in conjunction with ClientSecret, which is not required for my use, because the SubjectToken itself is used to authenticate the user:
In my use case, the verified ClientID is extracted from the SubjectToken, but I would like to provide the unverified ClientID as a parameter to use for ratelimiting/metric export purposes, etc.
Is it possible to weaken this check to allow only the ClientID to be specified? Or is there a better way to provide this information?
The text was updated successfully, but these errors were encountered:
olefirenque
changed the title
golang/oauth2 (token-exchange): pass partial client authentification info
golang/oauth2/stsexchange: pass partial client authentification info
Sep 6, 2024
Hi!
I chose
oauth2/google/externalaccount
package as the basis for my implementation oftoken-exchange
grant-type on the client side.As I see it, this token exchange configuration supports providing a
ClientID
:oauth2/google/externalaccount/basecredentials.go
Line 168 in 3e64809
But it is only used in conjunction with
ClientSecret
, which is not required for my use, because theSubjectToken
itself is used to authenticate the user:oauth2/google/internal/stsexchange/clientauth.go
Line 27 in 3e64809
In my use case, the verified
ClientID
is extracted from theSubjectToken
, but I would like to provide the unverifiedClientID
as a parameter to use for ratelimiting/metric export purposes, etc.Is it possible to weaken this check to allow only the
ClientID
to be specified? Or is there a better way to provide this information?The text was updated successfully, but these errors were encountered: