49 lines
1.8 KiB
C#
49 lines
1.8 KiB
C#
/*
|
|
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
|
|
* for more information concerning the license and the contributors participating to this project.
|
|
*/
|
|
|
|
namespace ZeroFramework.IdentityServer.API.Infrastructure.Authentication.Weixin;
|
|
|
|
/// <summary>
|
|
/// Default values for Weixin authentication.
|
|
/// </summary>
|
|
public static class WeixinAuthenticationDefaults
|
|
{
|
|
/// <summary>
|
|
/// Default value for <see cref="AuthenticationScheme.Name"/>.
|
|
/// </summary>
|
|
public const string AuthenticationScheme = "Weixin";
|
|
|
|
/// <summary>
|
|
/// Default value for <see cref="AuthenticationScheme.DisplayName"/>.
|
|
/// </summary>
|
|
public static readonly string DisplayName = "Weixin";
|
|
|
|
/// <summary>
|
|
/// Default value for <see cref="RemoteAuthenticationOptions.CallbackPath"/>.
|
|
/// </summary>
|
|
public static readonly string CallbackPath = "/signin-weixin";
|
|
|
|
/// <summary>
|
|
/// Default value for <see cref="AuthenticationSchemeOptions.ClaimsIssuer"/>.
|
|
/// </summary>
|
|
public static readonly string Issuer = "Weixin";
|
|
|
|
/// <summary>
|
|
/// Default value for <see cref="OAuthOptions.AuthorizationEndpoint"/>.
|
|
/// </summary>
|
|
public static readonly string AuthorizationEndpoint = "https://open.weixin.qq.com/connect/qrconnect";
|
|
|
|
/// <summary>
|
|
/// Default value for <see cref="OAuthOptions.TokenEndpoint"/>.
|
|
/// </summary>
|
|
public static readonly string TokenEndpoint = "https://api.weixin.qq.com/sns/oauth2/access_token";
|
|
|
|
/// <summary>
|
|
/// Default value for <see cref="OAuthOptions.UserInformationEndpoint"/>.
|
|
/// </summary>
|
|
public static readonly string UserInformationEndpoint = "https://api.weixin.qq.com/sns/userinfo";
|
|
}
|