IdentityConfiguration.cs 709 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.AspNetCore.Identity;
  7. namespace XF.Domain.Options
  8. {
  9. public class IdentityConfiguration : IdentityOptions
  10. {
  11. public AccountOptions Account { get; set; }
  12. public JwtOptions Jwt { get; set; }
  13. }
  14. public class AccountOptions
  15. {
  16. public string DefaultPassword { get; set; }
  17. }
  18. public class JwtOptions
  19. {
  20. public string SecretKey { get; set; }
  21. public string Issuer { get; set; }
  22. public string Audience { get; set; }
  23. public string Scope { get; set; }
  24. public int Expired { get; set; }
  25. }
  26. }