Class UmbracoRequireHttpsAttribute
If Umbraco.Core.UseHttps property in web.config is set to true, this filter will redirect any http access to https.
Inheritance
System.Object
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public class UmbracoRequireHttpsAttribute : RequireHttpsAttribute
Methods
View SourceHandleNonHttpsRequest(AuthorizationContext)
If Umbraco.Core.UseHttps is true and we have a non-HTTPS request, handle redirect.
Declaration
protected override void HandleNonHttpsRequest(AuthorizationContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationContext | filterContext | Filter context |
OnAuthorization(AuthorizationContext)
Check to see if HTTPS is currently being used if Umbraco.Core.UseHttps is true.
Declaration
public override void OnAuthorization(AuthorizationContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationContext | filterContext | Filter context |