/
GoogleDefaults.cs
44 lines (38 loc) · 1.74 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
42
43
44
// 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 System;
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 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 https://developers.google.com/apis-explorer/#search/oauth2/oauth2/v2/.
/// </remarks>
public static readonly string UserInformationEndpoint = "https://www.googleapis.com/oauth2/v2/userinfo";
}
}