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