JwtOptions.cs 603 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. namespace GxPress.Auth
  3. {
  4. /// <summary>
  5. /// Jwt配置项
  6. /// </summary>
  7. public class JwtOptions
  8. {
  9. /// <summary>
  10. /// Key
  11. /// </summary>
  12. public string Key { get; set; }
  13. /// <summary>
  14. /// 发行人
  15. /// </summary>
  16. public string Issuer { get; set; }
  17. /// <summary>
  18. /// 消费者
  19. /// </summary>
  20. public string Audience { get; set; }
  21. /// <summary>
  22. /// 有效期
  23. /// </summary>
  24. public TimeSpan Expires { get; set; } = TimeSpan.FromDays(30);
  25. }
  26. }