Files
tnb.server/common/Tnb.CollectiveOAuth/Enums/AuthResponseStatus.cs
2023-03-13 15:00:34 +08:00

49 lines
1.1 KiB
C#
Raw Permalink 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.ComponentModel;
namespace JNPF.Extras.CollectiveOAuth.Enums;
/// <summary>
/// 授权响应状态.
/// </summary>
public enum AuthResponseStatus
{
/// <summary>
/// 2000正常
/// other调用异常具体异常内容见<c>msg</c>.
/// </summary>
[Description("Success")]
SUCCESS = 2000,
[Description("Failure")]
FAILURE = 5000,
[Description("Not Implemented")]
NOT_IMPLEMENTED = 5001,
[Description("Parameter incomplete")]
PARAMETER_INCOMPLETE = 5002,
[Description("Unsupported operation")]
UNSUPPORTED = 5003,
[Description("AuthDefaultSource cannot be null")]
NO_AUTH_SOURCE = 5004,
[Description("Unidentified platform")]
UNIDENTIFIED_PLATFORM = 5005,
[Description("Illegal redirect uri")]
ILLEGAL_REDIRECT_URI = 5006,
[Description("Illegal request")]
ILLEGAL_REQUEST = 5007,
[Description("Illegal code")]
ILLEGAL_CODE = 5008,
[Description("Illegal state")]
ILLEGAL_STATUS = 5009,
[Description("The refresh token is required; it must not be null")]
REQUIRED_REFRESH_TOKEN = 5010,
}