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

Extension Grant support for clients #649

Open
ghstahl opened this issue Jun 19, 2023 · 0 comments
Open

Extension Grant support for clients #649

ghstahl opened this issue Jun 19, 2023 · 0 comments

Comments

@ghstahl
Copy link

ghstahl commented Jun 19, 2023

token-exchange
I have a token exchange implementation that conforms to the specification. For this discussion the response conforms.

I would like to use the client in this library to retrieve the token.
I copied the following example
client-credentials client

The code references internal helpers.

	tk, err := internal.RetrieveToken(c.ctx, c.conf.ClientID, c.conf.ClientSecret, c.conf.TokenURL, v, internal.AuthStyle(c.conf.AuthStyle))

Can we consider opening these helpers up for clients?

This is an example of the data being sent.

grant_type:urn:ietf:params:oauth:grant-type:token-exchange
subject_token:{{access_token}}
subject_token_type:access_token
requested_token_type:urn:ietf:params:oauth:token-exchange:org
//org_id:430f0845-9289-4b13-8760-111d1e96e03b
scope:offline_access
//org_id:junk

The org_id and scope are optional for my implementation.

I copied the entire internal folder into my project and it works without change when I use it to make a call to my custom token_exchange.

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