-
Notifications
You must be signed in to change notification settings - Fork 9.8k
/
GoogleDefaults.cs
41 lines (35 loc) · 1.6 KB
/
GoogleDefaults.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
// 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.Google;
/// <summary>
/// Default values for Google authentication
/// </summary>
public static class GoogleDefaults
{
/// <summary>
/// The default scheme for Google authentication. Defaults to <c>Google</c>.
/// </summary>
public const string AuthenticationScheme = "Google";
/// <summary>
/// The default display name for Google authentication. Defaults to <c>Google</c>.
/// </summary>
public static readonly string DisplayName = "Google";
/// <summary>
/// The default endpoint used to perform Google authentication.
/// </summary>
/// <remarks>
/// For more details about this endpoint, see <see href="https://developers.google.com/identity/protocols/oauth2/web-server#httprest"/>.
/// </remarks>
public static readonly string AuthorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth";
/// <summary>
/// The OAuth endpoint used to exchange access tokens.
/// </summary>
public static readonly string TokenEndpoint = "https://oauth2.googleapis.com/token";
/// <summary>
/// The Google endpoint that is used to gather additional user information.
/// </summary>
/// <remarks>
/// For more details about this endpoint, see <see href="https://developers.google.com/apis-explorer/#search/oauth2/oauth2/v2/"/>.
/// </remarks>
public static readonly string UserInformationEndpoint = "https://www.googleapis.com/oauth2/v2/userinfo";
}