C# Class OxxCommerceStarterKit.Web.Business.AccessDeniedHandler

Default implementation of T:EPiServer.AccessDeniedDelegate
Datei anzeigen Open project: episerver/Commerce-Demo-Kit Class Usage Examples

Public Methods

Method Description
AccessDenied ( object sender ) : void
CreateAccessDeniedDelegate ( System.Web.Mvc.AuthorizationContext filterContext ) : AccessDeniedDelegate

Creates the access denied delegate respect to site authentication mode. If the site configured with Forms then creates FormLogonAccessDenied otherwise BrowserLogonAccessDenied

Private Methods

Method Description
BrowserLogonAccessDenied ( ) : void

Sends an access denied message when using bowser-based authentication (Basic Auth or NTLM).

FormLogonAccessDenied ( System.Web.Mvc.AuthorizationContext filter ) : void

Handles access denied for forms authentication scenarios by redirecting to the logon form.

Method Details

AccessDenied() public static method

public static AccessDenied ( object sender ) : void
sender object
return void

CreateAccessDeniedDelegate() public static method

Creates the access denied delegate respect to site authentication mode. If the site configured with Forms then creates FormLogonAccessDenied otherwise BrowserLogonAccessDenied
public static CreateAccessDeniedDelegate ( System.Web.Mvc.AuthorizationContext filterContext ) : AccessDeniedDelegate
filterContext System.Web.Mvc.AuthorizationContext
return AccessDeniedDelegate