using System.Collections.Generic; using xModels.Base; namespace xIdentityService.Configuration { /// /// XProxy Middleware Configuration ... /// public class XProxyConfiguration { /// /// Proxy Host Address for Clients Which Use XProxy Server ... /// /// public string Host { get; set; } /// /// if EnableXPoweredByAthorization property setted to true, this property determines /// the header must be this value ... /// /// public string XPoweredValue { get; set; } /// /// Determines Proxy Http Handler Check SSL or not ... /// /// public bool DisableSSLCheck { get; set; } /// /// Determines Http Client Handler Allow Auto Redirect or not ... /// /// public bool AllowAutoRedirect { get; set; } /// /// Determines Proxy Server Log Received Requests or not ... /// /// public bool EnableLogging { get; set; } /// /// DefineRoutes for Handling ... /// /// public HashSet Routes { get; set; } } /// /// Describe a Proxy Route ... /// public class XProxyRouteDescriptor : XBaseDescriptor { /// /// Determines which route can handled for Proxyfing ... /// /// public string Route { get; set; } /// /// Determines Proxy Server Handle Athorization or not ... /// /// public bool EnableAuthorization { get; set; } /// /// Determines Which Scopes allowed to this route if authorizations enabled ... /// /// public HashSet AllowedScopes { get; set; } /// /// Determines Which Roles allowed to this route if authorizations enabled ... /// /// public HashSet AllowedRoles { get; set; } /// /// Determines XProxy Can Check XPowered By Authorization or not ... /// /// public bool EnableXPoweredByAthorization { get; set; } } }