Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang/oauth2/stsexchange: pass partial client authentification info #739

Open
olefirenque opened this issue Aug 25, 2024 · 0 comments
Open

Comments

@olefirenque
Copy link

olefirenque commented Aug 25, 2024

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:

if c.ClientID == "" || c.ClientSecret == "" || values == nil || headers == nil {

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?

@olefirenque olefirenque changed the title golang/oauth2 (token-exchange): pass partial client authentification info golang/oauth2/stsexchange: pass partial client authentification info Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant