コード例 #1
0
        /// <summary>
        /// ctor
        /// </summary>
        /// <param name="userAccessTokenManagementOptions"></param>
        /// <param name="clientAccessTokenManagementOptions"></param>
        /// <param name="oidcOptions"></param>
        /// <param name="schemeProvider"></param>
        /// <param name="logger"></param>
        public DefaultTokenClientConfigurationService(
            UserAccessTokenManagementOptions userAccessTokenManagementOptions,
            ClientAccessTokenManagementOptions clientAccessTokenManagementOptions,
            IOptionsMonitor <OpenIdConnectOptions> oidcOptions,
            IAuthenticationSchemeProvider schemeProvider,
            ILogger <DefaultTokenClientConfigurationService> logger)
        {
            _userAccessTokenManagementOptions   = userAccessTokenManagementOptions;
            _clientAccessTokenManagementOptions = clientAccessTokenManagementOptions;

            _oidcOptions    = oidcOptions;
            _schemeProvider = schemeProvider;
            _logger         = logger;
        }
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="sync"></param>
 /// <param name="userAccessTokenStore"></param>
 /// <param name="clock"></param>
 /// <param name="options"></param>
 /// <param name="tokenEndpointService"></param>
 /// <param name="logger"></param>
 public UserAccessAccessTokenManagementService(
     IUserAccessTokenRequestSynchronization sync,
     IUserAccessTokenStore userAccessTokenStore,
     ISystemClock clock,
     UserAccessTokenManagementOptions options,
     ITokenEndpointService tokenEndpointService,
     ILogger <UserAccessAccessTokenManagementService> logger)
 {
     _sync = sync;
     _userAccessTokenStore = userAccessTokenStore;
     _clock   = clock;
     _options = options;
     _tokenEndpointService = tokenEndpointService;
     _logger = logger;
 }