Пример #1
0
 public void FromOtherOptions(MiCakeJwtOptions otherOptios)
 {
     SecurityKey           = otherOptios.SecurityKey;
     Algorithm             = otherOptios.Algorithm;
     Issuer                = otherOptios.Issuer;
     Audience              = otherOptios.Audience;
     ExpirationMinutes     = otherOptios.ExpirationMinutes;
     EncryptingCredentials = otherOptios.EncryptingCredentials;
 }
Пример #2
0
 public JwtSupporter(IOptions <MiCakeJwtOptions> jwtOptions)
 {
     miCakeJwtOptions = jwtOptions?.Value;
 }