Open ByZhouhang opened 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
` 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