コード例 #1
0
ファイル: MiCakeJwtOptions.cs プロジェクト: wrsxinlang/MiCake
 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;
 }