This repository was archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 597
/
Copy pathOpenIdConnectDefaults.cs
41 lines (35 loc) · 1.67 KB
/
OpenIdConnectDefaults.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
{
/// <summary>
/// Default values related to OpenIdConnect authentication handler
/// </summary>
public static class OpenIdConnectDefaults
{
/// <summary>
/// Constant used to identify state in openIdConnect protocol message.
/// </summary>
public static readonly string AuthenticationPropertiesKey = "OpenIdConnect.AuthenticationProperties";
/// <summary>
/// The default value used for OpenIdConnectOptions.AuthenticationScheme.
/// </summary>
public const string AuthenticationScheme = "OpenIdConnect";
/// <summary>
/// The default value for the display name.
/// </summary>
public static readonly string DisplayName = "OpenIdConnect";
/// <summary>
/// The prefix used to for the nonce in the cookie.
/// </summary>
public static readonly string CookieNoncePrefix = ".AspNetCore.OpenIdConnect.Nonce.";
/// <summary>
/// The property for the RedirectUri that was used when asking for a 'authorizationCode'.
/// </summary>
public static readonly string RedirectUriForCodePropertiesKey = "OpenIdConnect.Code.RedirectUri";
/// <summary>
/// Constant used to identify userstate inside AuthenticationProperties that have been serialized in the 'state' parameter.
/// </summary>
public static readonly string UserstatePropertiesKey = "OpenIdConnect.Userstate";
}
}