IdentityModel / IdentityModel.OidcClient

Certified C#/NetStandard OpenID Connect Client Library for native mobile/desktop Applications (RFC 8252)
Apache License 2.0
599 stars 175 forks source link

RequestAuthorizationCodeTokenAsync not support PKCE #448

Open ByZhouhang opened 1 month ago

ByZhouhang commented 1 month ago

` 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