public AccountLinkingStateService( ILogger <AccountLinkingStateService> logger, IReplayValidator replayValidator, IDataProtectionProvider dataProtectionProvider, IOptions <AccountLinkingStateServiceOptions> options) { _logger = logger; _replayValidator = replayValidator; var protectorName = string.IsNullOrEmpty(options.Value.ProtectorName) ? (typeof(AccountLinkingStateService).Assembly.FullName ?? nameof(AccountLinkingStateService)) : options.Value.ProtectorName; _dataProtector = dataProtectionProvider.CreateProtector(protectorName).ToTimeLimitedDataProtector(); _lifeSpan = options.Value.ExpirationTime; }
public OAuthTokenProvider( ILogger <OAuthTokenProvider> logger, IOptions <OAuthOptions> options, AccountLinkingStateService oAuthStateService, OAuthServiceClient oAuthServiceClient, IUserTokenStore userTokenStore, IReplayValidator replayValidator) { _logger = logger; _options = options.Value; _oAuthStateService = oAuthStateService; _oAuthServiceClient = oAuthServiceClient; _userTokenStore = userTokenStore; _replayValidator = replayValidator; }