コード例 #1
0
 public CreateJwtTokenAsStringService(
     IJwtTokenClaimsProvider jwtTokenClaimsProvider,
     ISigningCredentialsProvider signingCredentialsProvider,
     IJwtTokenExpireDateTimeProvider jwtTokenExpireDateTimeProvider,
     IJwtSecurityTokenProvider jwtSecurityTokenProvider,
     IJwtSecurityTokenWriter jwtSecurityTokenWriter)
 {
     _jwtTokenClaimsProvider         = jwtTokenClaimsProvider;
     _signingCredentialsProvider     = signingCredentialsProvider;
     _jwtTokenExpireDateTimeProvider = jwtTokenExpireDateTimeProvider;
     _jwtSecurityTokenProvider       = jwtSecurityTokenProvider;
     _jwtSecurityTokenWriter         = jwtSecurityTokenWriter;
 }
コード例 #2
0
 public OtpAuthTokenProvider(
     ISigningCredentialsProvider signingCredentialsProvider,
     IJwtTokenExpireDateTimeProvider jwtTokenExpireDateTimeProvider,
     IJwtSecurityTokenProvider jwtSecurityTokenProvider,
     IJwtSecurityTokenWriter jwtSecurityTokenWriter,
     IOtpAuthTokenClaimsProvider otpAuthTokenClaimsProvider)
 {
     _signingCredentialsProvider     = signingCredentialsProvider;
     _jwtTokenExpireDateTimeProvider = jwtTokenExpireDateTimeProvider;
     _jwtSecurityTokenProvider       = jwtSecurityTokenProvider;
     _jwtSecurityTokenWriter         = jwtSecurityTokenWriter;
     _otpAuthTokenClaimsProvider     = otpAuthTokenClaimsProvider;
 }