Files
juipnet/Infrastructure/ServiceClient/Alipay.AopSdk.Core/Domain/AlipayUserInfoAuthModel.cs
wanyongkang d318014316 初始提交
2020-10-07 20:25:03 +08:00

29 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Alipay.AopSdk.Core.Domain
{
/// <summary>
/// AlipayUserInfoAuthModel Data Structure.
/// </summary>
[Serializable]
public class AlipayUserInfoAuthModel : AopObject
{
/// <summary>
/// 接口权限值目前只支持auth_user和auth_base两个值。
/// auth_base以auth_base为scope发起的网页授权是用来获取进入页面的用户的userId的并且是静默授权并自动跳转到回调页的。用户感知的就是直接进入了回调页通常是业务页面
/// auth_user以auth_user为scope发起的网页授权是用来获取用户的基本信息的比如头像、昵称等。但这种授权需要用户手动同意用户同意后就可在授权后获取到该用户的基本信息。
/// </summary>
[JsonProperty("scopes")]
public List<string> Scopes { get; set; }
/// <summary>
/// 商户自定义参数用户授权后重定向到redirect_uri时会原样回传给商户。 为防止CSRF攻击建议开发者请求授权时传入state参数该参数要做到既不可预测又可以证明客户端和当前第三方网站的登录认证状态存在关联。
/// 只允许base64字符长度小于等于100
/// </summary>
[JsonProperty("state")]
public string State { get; set; }
}
}