protected TokenFactory(ITokenSigningCredentials credentials, ITokenSpecification specification,
                               JwtSecurityTokenHandler jwtSecurityTokenHandler = null)
        {
            _           = credentials ?? throw new ArgumentNullException(nameof(credentials));
            Credentials = credentials;

            _             = specification ?? throw new ArgumentNullException(nameof(specification));
            Specification = specification;


            JwtSecurityTokenHandler = jwtSecurityTokenHandler ?? new JwtSecurityTokenHandler();
        }
Example #2
0
 public AuthenticationTokenFactory(ITokenSigningCredentials credentials,
                                   ITokenSpecification specs, JwtSecurityTokenHandler tokenHandler = null)
     : base(credentials, specs, tokenHandler)
 {
 }
Example #3
0
 public RefreshTokenFactory(ITokenSigningCredentials credentials,
                            ITokenSpecification specs, JwtSecurityTokenHandler jwtSecurityTokenHandler,
                            JwtSecurityTokenHandler tokenHandler = null)
     : base(credentials, specs, jwtSecurityTokenHandler)
 {
 }