SignatureValidatedContext.cs 861 B

123456789101112131415161718192021222324252627282930
  1. // 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证。
  2. //
  3. // 必须在法律法规允许的范围内正确使用,严禁将其用于非法、欺诈、恶意或侵犯他人合法权益的目的。
  4. using Microsoft.AspNetCore.Authentication;
  5. namespace Admin.NET.Core;
  6. /// <summary>
  7. /// Signature 身份验证已验证上下文
  8. /// </summary>
  9. public class SignatureValidatedContext : ResultContext<SignatureAuthenticationOptions>
  10. {
  11. public SignatureValidatedContext(HttpContext context,
  12. AuthenticationScheme scheme,
  13. SignatureAuthenticationOptions options)
  14. : base(context, scheme, options)
  15. {
  16. }
  17. /// <summary>
  18. /// 身份标识
  19. /// </summary>
  20. public string AccessKey { get; set; }
  21. /// <summary>
  22. /// 密钥
  23. /// </summary>
  24. public string AccessSecret { get; set; }
  25. }