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)
427
properties.Items.Add(
OAuthConstants
.CodeVerifierKey, codeVerifier);
432
message.Parameters.Add(
OAuthConstants
.CodeChallengeKey, codeChallenge);
433
message.Parameters.Add(
OAuthConstants
.CodeChallengeMethodKey,
OAuthConstants
.CodeChallengeMethodS256);
1280
if (properties.Items.TryGetValue(
OAuthConstants
.CodeVerifierKey, out var codeVerifier))
1282
tokenEndpointRequest.Parameters.Add(
OAuthConstants
.CodeVerifierKey, codeVerifier);
1283
properties.Items.Remove(
OAuthConstants
.CodeVerifierKey);