NewGaoKaoApi/PaymentSDK/AliPay/Domain/AlipayUserInfoAuthModel.cs

27 lines
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Aop.Api.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>
[XmlArray("scopes")]
[XmlArrayItem("string")]
public List<string> Scopes { get; set; }
/// <summary>
/// 商户自定义参数用户授权后重定向到redirect_uri时会原样回传给商户。 为防止CSRF攻击建议开发者请求授权时传入state参数该参数要做到既不可预测又可以证明客户端和当前第三方网站的登录认证状态存在关联。 只允许base64字符长度小于等于100
/// </summary>
[XmlElement("state")]
public string State { get; set; }
}
}