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

RequestAuthorizationCodeTokenAsync not support PKCE #448

Open
ByZhouhang opened this issue Nov 2, 2024 · 0 comments
Open

RequestAuthorizationCodeTokenAsync not support PKCE #448

ByZhouhang opened this issue Nov 2, 2024 · 0 comments

Comments

@ByZhouhang
Copy link

`
var tokenRequest = new AuthorizationCodeTokenRequest
{
Address = tokenEndpoint,
ClientId = clientId,
Code = code,
RedirectUri = redirectUri,
CodeVerifier = codeVerifier, // PKCE 模式
GrantType = "authorization_code",

};

var _httpClient = new HttpClient();

var tokenResponse = await _httpClient.RequestAuthorizationCodeTokenAsync(tokenRequest);
`
The request will not be sent, prompt client_secret must be provided in the Authorization header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant