public ValidateToken(IClockProvider clockProvider, IEncryptionProvider encryptionProvider, IRequestTokenService requestTokenService) { _clockProvider = clockProvider; _encryptionProvider = encryptionProvider; _requestTokenService = requestTokenService; }
public CreateToken(IClockProvider clockProvider, IEncryptionProvider encryptionProvider, IRandomStringGenerator randomStringGenerator, IRequestTokenService requestTokenService) { _clockProvider = clockProvider; _encryptionProvider = encryptionProvider; _randomStringGenerator = randomStringGenerator; _requestTokenService = requestTokenService; }
public ValidateTokenValidator(IAccountService accountService, IEncryptionProvider encryptionProvider, IRequestTokenService requestTokenService) : base(accountService) { _encryptionProvider = encryptionProvider; _requestTokenService = requestTokenService; RuleFor(member => member.Token) .NotEmpty() .MustAsync(BeValid) .WithMessage(property => string.Format("The token '{0}' can not be found or has expired.", property.Token)); }
public RequestTokenServiceTest() { _flowHelper = new RequestTokenService( new HttpClient(), Options.Create(new TokenServiceOptions { ConsumerKey = Environment.GetEnvironmentVariable("Celigo__UnitTests__NetSuite__TBA__ConsumerKey"), ConsumerSecret = Environment.GetEnvironmentVariable("Celigo__UnitTests__NetSuite__TBA__ConsumerSecret"), CallbackUrl = "https://localhost:5001/authorize" }) ); _account = Environment.GetEnvironmentVariable("Celigo__UnitTests__NetSuite__TBA__Account"); }
public TsaLoginController(IAccessTokenService accessTokenService, IRequestTokenService requestTokenService, IRevokeTokenService revokeTokenService) { _accessTokenService = accessTokenService; _requestTokenService = requestTokenService; _revokeTokenService = revokeTokenService; }