/
AzureAdB2CDefaults.cs
52 lines (43 loc) · 2.13 KB
/
AzureAdB2CDefaults.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
42
43
44
45
46
47
48
49
50
51
52
// 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.using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Authentication;
namespace Microsoft.AspNetCore.Authentication.AzureADB2C.UI
{
/// <summary>
/// Constants for different Azure Active Directory B2C authentication components.
/// </summary>
public static class AzureADB2CDefaults
{
/// <summary>
/// The key for the policy used in <see cref="AuthenticationProperties"/>.
/// </summary>
public static readonly string PolicyKey = "Policy";
/// <summary>
/// The scheme name for Open ID Connect when using
/// <see cref="AzureADB2CAuthenticationBuilderExtensions.AddAzureADB2C(AuthenticationBuilder, System.Action{AzureADB2COptions})"/>.
/// </summary>
public const string OpenIdScheme = "AzureADB2COpenID";
/// <summary>
/// The scheme name for cookies when using
/// <see cref="AzureADB2CAuthenticationBuilderExtensions.AddAzureADB2C(AuthenticationBuilder, System.Action{AzureADB2COptions})"/>.
/// </summary>
public const string CookieScheme = "AzureADB2CCookie";
/// <summary>
/// The default scheme for Azure Active Directory B2C Bearer.
/// </summary>
public const string BearerAuthenticationScheme = "AzureADB2CBearer";
/// <summary>
/// The scheme name for JWT Bearer when using
/// <see cref="AzureADB2CAuthenticationBuilderExtensions.AddAzureADB2CBearer(AuthenticationBuilder, System.Action{AzureADB2COptions})"/>.
/// </summary>
public const string JwtBearerAuthenticationScheme = "AzureADB2CJwtBearer";
/// <summary>
/// The default scheme for Azure Active Directory B2C.
/// </summary>
public const string AuthenticationScheme = "AzureADB2C";
/// <summary>
/// The display name for Azure Active Directory B2C.
/// </summary>
public static readonly string DisplayName = "Azure Active Directory B2C";
}
}