public EmbeddedHtmlResult(HttpRequestMessage request, string file, AdminSecurityConfiguration securityConfiguration) { var pathbase = request.GetOwinContext().Request.PathBase; this.path = pathbase.Value; this.file = file; this.authorization_endpoint = pathbase + Constants.AuthorizePath; this._adminSecurityConfiguration = securityConfiguration; }
internal void Validate() { if (this.Factory == null) { throw new Exception("Factory is required."); } if (!DisableSecurity) { if (this.AdminSecurityConfiguration == null) { throw new Exception("AdminSecurityConfiguration is required."); } AdminSecurityConfiguration.Validate(); } }