/
MicrosoftAccountDefaults.cs
38 lines (32 loc) · 1.54 KB
/
MicrosoftAccountDefaults.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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.AspNetCore.Authentication.MicrosoftAccount;
/// <summary>
/// Default values for Microsoft account authentication
/// </summary>
public static class MicrosoftAccountDefaults
{
/// <summary>
/// The default scheme for Microsoft account authentication. Defaults to <c>Microsoft</c>.
/// </summary>
public const string AuthenticationScheme = "Microsoft";
/// <summary>
/// The default display name for Microsoft account authentication. Defaults to <c>Microsoft</c>.
/// </summary>
public static readonly string DisplayName = "Microsoft";
/// <summary>
/// The default endpoint used to perform Microsoft account authentication.
/// </summary>
/// <remarks>
/// For more details about this endpoint, see <see href="https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_user"/>.
/// </remarks>
public static readonly string AuthorizationEndpoint = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize";
/// <summary>
/// The OAuth endpoint used to exchange access tokens.
/// </summary>
public static readonly string TokenEndpoint = "https://login.microsoftonline.com/common/oauth2/v2.0/token";
/// <summary>
/// The Microsoft Graph API endpoint that is used to gather additional user information.
/// </summary>
public static readonly string UserInformationEndpoint = "https://graph.microsoft.com/v1.0/me";
}