public DefaultPersistedGrantStoreTests() { _codes = new DefaultAuthorizationCodeStore(_store, new PersistentGrantSerializer(), TestLogger.Create <DefaultAuthorizationCodeStore>()); _refreshTokens = new DefaultRefreshTokenStore(_store, new PersistentGrantSerializer(), TestLogger.Create <DefaultRefreshTokenStore>()); _referenceTokens = new DefaultReferenceTokenStore(_store, new PersistentGrantSerializer(), TestLogger.Create <DefaultReferenceTokenStore>()); _userConsent = new DefaultUserConsentStore(_store, new PersistentGrantSerializer(), TestLogger.Create <DefaultUserConsentStore>()); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultConsentService" /> class. /// </summary> /// <param name="options">The options.</param> /// <param name="userConsentStore">The user consent store.</param> /// <exception cref="System.ArgumentNullException">store</exception> public DefaultConsentService(IdentityServerOptions options, IUserConsentStore userConsentStore) { _options = options; _userConsentStore = userConsentStore; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultConsentService" /> class. /// </summary> /// <param name="userConsentStore">The user consent store.</param> /// <exception cref="System.ArgumentNullException">store</exception> public CustomDefaultConsentService(IUserConsentStore userConsentStore) { _userConsentStore = userConsentStore; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultConsentService" /> class. /// </summary> /// <param name="clock">The clock.</param> /// <param name="userConsentStore">The user consent store.</param> /// <exception cref="System.ArgumentNullException">store</exception> public DefaultConsentService(ISystemClock clock, IUserConsentStore userConsentStore) { _clock = clock; _userConsentStore = userConsentStore; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultConsentService" /> class. /// </summary> /// <param name="clock">The clock.</param> /// <param name="userConsentStore">The user consent store.</param> /// <param name="logger">The logger.</param> /// <exception cref="System.ArgumentNullException">store</exception> public DefaultConsentService(ISystemClock clock, IUserConsentStore userConsentStore, ILogger <DefaultConsentService> logger) { Clock = clock; UserConsentStore = userConsentStore; Logger = logger; }
public CustomConsentService(ISystemClock clock, IUserConsentStore userConsentStore, ILogger <DefaultConsentService> logger) : base(clock, userConsentStore, logger) { }
/// <summary> /// Initializes a new instance of the <see cref="PersistedGrantService"/> class. /// </summary> /// <param name="getAllUserConsentStore">The get all user consent store.</param> /// <param name="userConsentStore">The user consent store.</param> /// <exception cref="ArgumentNullException"> /// getAllUserConsentStore /// or /// userConsentStore /// </exception> public PersistedGrantService(IGetAllUserConsentStore getAllUserConsentStore, IUserConsentStore userConsentStore) { _getAllUserConsentStore = getAllUserConsentStore ?? throw new ArgumentNullException(nameof(getAllUserConsentStore)); _userConsentStore = userConsentStore ?? throw new ArgumentNullException(nameof(userConsentStore)); }