/// <summary> /// Creates a new instance of <see cref="ParsedScopePersistedGrantService{T}"/>. /// </summary> /// <param name="inner">Implements persisted grant logic.</param> /// <param name="persistedGrantDbContext">Abstraction for the operational data context.</param> /// <param name="parsedScopeNotificationService">Contains methods to notify an API when a dynamic consent is altered.</param> /// <param name="serializer">Interface for persisted grant serialization.</param> /// <param name="scopeParser">Allows parsing raw scopes values into structured scope values.</param> public ParsedScopePersistedGrantService(TPersistedGrantService inner, IPersistedGrantDbContext persistedGrantDbContext, IParsedScopeNotificationService parsedScopeNotificationService, IPersistentGrantSerializer serializer, IScopeParser scopeParser) { _inner = inner; _persistedGrantDbContext = persistedGrantDbContext ?? throw new ArgumentNullException(nameof(persistedGrantDbContext)); _parsedScopeNotificationService = parsedScopeNotificationService ?? throw new ArgumentNullException(nameof(parsedScopeNotificationService)); _serializer = serializer ?? throw new ArgumentNullException(nameof(serializer)); _scopeParser = scopeParser ?? throw new ArgumentNullException(nameof(scopeParser)); }
/// <summary> /// Initializes a new instance of the <see cref="TokenResponseGenerator" /> class. /// </summary> /// <param name="clock">The clock.</param> /// <param name="tokenService">The token service.</param> /// <param name="refreshTokenService">The refresh token service.</param> /// <param name="scopeParser">The scope parser.</param> /// <param name="resources">The resources.</param> /// <param name="clients">The clients.</param> /// <param name="logger">The logger.</param> public TokenResponseGenerator(ISystemClock clock, ITokenService tokenService, IRefreshTokenService refreshTokenService, IScopeParser scopeParser, IResourceStore resources, IClientStore clients, ILogger <TokenResponseGenerator> logger) { Clock = clock; TokenService = tokenService; RefreshTokenService = refreshTokenService; ScopeParser = scopeParser; Resources = resources; Clients = clients; Logger = logger; }
public MyDefaultResourceValidator( IHttpContextAccessor httpContextAccessor, IResourceStore store, IScopeParser scopeParser, IScopedHttpContextRequestForm scopedHttpContextRequestForm, ILogger <DefaultResourceValidator> logger) : base(store, scopeParser, logger) { _httpContextAccessor = httpContextAccessor; _scopedHttpContextRequestForm = scopedHttpContextRequestForm; _logger = logger; _scopeParser = scopeParser; }
/// <summary> /// /// </summary> /// <param name="clock"></param> /// <param name="tokenService"></param> /// <param name="refreshTokenService"></param> /// <param name="scopeParser"></param> /// <param name="resources"></param> /// <param name="clients"></param> /// <param name="logger"></param> /// <param name="cache"></param> public MandatoryExpTokenResponseGenerator( IDistributedCache cache, ISystemClock clock, ITokenService tokenService, IRefreshTokenService refreshTokenService, IScopeParser scopeParser, IResourceStore resources, IClientStore clients, ILogger <TokenResponseGenerator> logger) : base(clock, tokenService, refreshTokenService, scopeParser, resources, clients, logger) { _cache = cache; }
public DefaultDeviceFlowInteractionService( IClientStore clients, IUserSession session, IDeviceFlowCodeService devices, IResourceStore resourceStore, IScopeParser scopeParser, ILogger <DefaultDeviceFlowInteractionService> logger) { _clients = clients; _session = session; _devices = devices; _resourceStore = resourceStore; _scopeParser = scopeParser; _logger = logger; }
public MyTokenResponseGenerator( IScopedHttpContextRequestForm scopedHttpContextRequestForm, IHttpContextAccessor contextAccessor, IScopedOptionalClaims scopedOptionalClaims, IScopedStorage scopedStorage, IRefreshTokenStore refreshTokenStore, IReferenceTokenStore referenceTokenStore, IPersistedGrantStoreEx persistedGrantStore, ISystemClock clock, ITokenService tokenService, IRefreshTokenService refreshTokenService, IScopeParser scopeParser, IResourceStore resources, IClientStore clients, ILogger <TokenResponseGenerator> logger) : base(clock, tokenService, refreshTokenService, scopeParser, resources, clients, logger) { _scopedHttpContextRequestForm = scopedHttpContextRequestForm; _contextAccessor = contextAccessor; _scopedOptionalClaims = scopedOptionalClaims; _refreshTokenStore = refreshTokenStore; _referenceTokenStore = referenceTokenStore; _scopedStorage = scopedStorage; _persistedGrantStore = persistedGrantStore; }
public MResourceValidator(IResourceStore store, IScopeParser scopeParser, ILogger <DefaultResourceValidator> logger) : base(store, scopeParser, logger) { }
/// <summary> /// Initializes a new instance of the <see cref="DefaultResourceValidator"/> class. /// </summary> /// <param name="store">The store.</param> /// <param name="scopeParser"></param> /// <param name="logger">The logger.</param> public DefaultResourceValidator(IResourceStore store, IScopeParser scopeParser, ILogger <DefaultResourceValidator> logger) { _logger = logger; _scopeParser = scopeParser; _store = store; }
public CustomTokenResponseGenerator(ISystemClock clock, ITokenService tokenService, IRefreshTokenService refreshTokenService, IScopeParser scopeParser, IResourceStore resources, IClientStore clients, ILogger <TokenResponseGenerator> logger) : base(clock, tokenService, refreshTokenService, scopeParser, resources, clients, logger) { }