AuthConstant.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace ERP.Framework.Constants
  2. {
  3. public class AuthConstant
  4. {
  5. /// <summary>
  6. /// 权鉴 Hearder
  7. /// </summary>
  8. public const string HEADER = "Authorization";
  9. /// <summary>
  10. /// 登录用户密码错误
  11. /// </summary>
  12. public const string PASSWORD_ERROR = "auth:password-error:";
  13. /// <summary>
  14. ///
  15. /// </summary>
  16. public const string ONLINE_TOKEN = "auth:online-token:";
  17. /// <summary>
  18. /// 最后一次登录时间(时限为token 长久有效期),
  19. /// null为token失效
  20. /// -1 为被踢出
  21. /// -2 为被顶下线
  22. /// </summary>
  23. public const string LAST_ACTIVITY = "auth:last-activity:";
  24. /// <summary>
  25. /// 用戶信息
  26. /// </summary>
  27. public const string USER_INFO = "auth:user-info:";
  28. /// <summary>
  29. /// Token List
  30. /// </summary>
  31. public const string TOKEN_LIST = "auth:token-list:";
  32. /// <summary>
  33. /// 被踢下线
  34. /// </summary>
  35. public const string KICKED_OFF = "-1";
  36. /// <summary>
  37. /// 被顶下线
  38. /// </summary>
  39. public const string SUBSTITUTED = "-2";
  40. /// <summary>
  41. /// 首次密码错误
  42. /// </summary>
  43. public const string FIRST_PASSWORD_ERROR = "1";
  44. }
  45. }