public PreIdentityServerMiddleware( ISingletonAutoObjectContainer <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}"; } }
public MySingletonAutoPersonContainer(ISingletonAutoObjectContainer <MySingletonAutoPersonContainer, Person> mySingletonPerson) { _mySingletonPerson = mySingletonPerson; }