示例#1
0
 public SummaryController(
     ISingletonAutoObjectCache <SummaryController, Dictionary <string, object> > objectCache,
     IConfiguration configuration,
     IActionContextAccessor actionContextAccessor, ILogger <SummaryController> logger)
 {
     _objectCache           = objectCache;
     _configuration         = configuration;
     _actionContextAccessor = actionContextAccessor;
     _logger = logger;
 }
        public PublicFacingUrlMiddleware(RequestDelegate next,
                                         IConfiguration configuration,
                                         ISingletonAutoObjectCache <PublicFacingUrlMiddleware, Dictionary <string, object> > objectCache)
        {
            _next          = next;
            _configuration = configuration;
            _objectCache   = objectCache;

            PathRootUrl = _configuration["IdentityServerPublicFacingUri"];
            if (!string.IsNullOrEmpty(PathRootUrl))
            {
                PathRootUrl = PathRootUrl.Trim('/');
            }
        }
示例#3
0
        public PreIdentityServerMiddleware(
            ISingletonAutoObjectCache <PreIdentityServerMiddleware, Dictionary <string, object> > objectCache,
            IConfiguration configuration,
            IClientSecretValidator clientValidator,
            IDiscoveryResponseGenerator responseGenerator,
            IEnumerable <IIdentityServerRequestTrackerEvaluator> evaluators,
            RequestDelegate next,
            ILogger <PreIdentityServerMiddleware> logger)
        {
            _objectCache   = objectCache;
            _configuration = configuration;

            _clientValidator   = clientValidator;
            _responseGenerator = responseGenerator;
            _evaluators        = evaluators;
            _next   = next;
            _logger = logger;

            KnownEndpointPaths = new List <string>()
            {
                "/.well-known/openid-configuration",
                "/.well-known/openid-configuration/jwks",
                "/connect/authorize",
                "/connect/token",
                "/connect/userinfo",
                "/connect/endsession",
                "/connect/checksession",
                "/connect/revocation",
                "/connect/introspect",
                "/connect/deviceauthorization"
            };
            PathRootUrl = _configuration["IdentityServerPublicFacingUri"];
            if (!string.IsNullOrEmpty(PathRootUrl))
            {
                PathRootUrl = PathRootUrl.TrimEnd('/');
                PathRootUrl = $"/{PathRootUrl}";
            }
        }
示例#4
0
 public GoodSingleton2Controller(ISingletonAutoObjectCache <GoodSingleton2Controller, Dictionary <string, object> > objectCache)
 {
     _objectCache = objectCache;
 }