18 references to OAuthConstants
Microsoft.AspNetCore.Authentication.MicrosoftAccount (4)
MicrosoftAccountHandler.cs (4)
86properties.Items.Add(OAuthConstants.CodeVerifierKey, codeVerifier); 91queryStrings[OAuthConstants.CodeChallengeKey] = codeChallenge; 92queryStrings[OAuthConstants.CodeChallengeMethodKey] = OAuthConstants.CodeChallengeMethodS256;
Microsoft.AspNetCore.Authentication.OAuth (7)
OAuthHandler.cs (7)
210if (context.Properties.Items.TryGetValue(OAuthConstants.CodeVerifierKey, out var codeVerifier)) 212tokenRequestParameters.Add(OAuthConstants.CodeVerifierKey, codeVerifier!); 213context.Properties.Items.Remove(OAuthConstants.CodeVerifierKey); 320properties.Items.Add(OAuthConstants.CodeVerifierKey, codeVerifier); 325parameters[OAuthConstants.CodeChallengeKey] = codeChallenge; 326parameters[OAuthConstants.CodeChallengeMethodKey] = OAuthConstants.CodeChallengeMethodS256;
Microsoft.AspNetCore.Authentication.OpenIdConnect (7)
OpenIdConnectHandler.cs (7)
418properties.Items.Add(OAuthConstants.CodeVerifierKey, codeVerifier); 423message.Parameters.Add(OAuthConstants.CodeChallengeKey, codeChallenge); 424message.Parameters.Add(OAuthConstants.CodeChallengeMethodKey, OAuthConstants.CodeChallengeMethodS256); 1273if (properties.Items.TryGetValue(OAuthConstants.CodeVerifierKey, out var codeVerifier)) 1275tokenEndpointRequest.Parameters.Add(OAuthConstants.CodeVerifierKey, codeVerifier); 1276properties.Items.Remove(OAuthConstants.CodeVerifierKey);