C# Класс CardShop.Auth.AuthorizeUserAttribute

Used to specify a method or class that requires authentication.
Наследование: System.Web.Mvc.AuthorizeAttribute
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AuthorizeUserAttribute ( ) : System

Requires the user to be logged in, but not of any particular role.

Защищенные методы

Метод Описание
AuthorizeCore ( System.Web.HttpContextBase httpContext ) : bool

Will check to see if the currently-acting user has any of the provided roles. Otherwise, if no roles are specified, the check will merely be to see if the user is logged in.

HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void

If the user is logged in, a 403 view will be rendered. If the user is not logged in, the action will be passed onto the default handler (asking them to login).

Описание методов

AuthorizeCore() защищенный Метод

Will check to see if the currently-acting user has any of the provided roles. Otherwise, if no roles are specified, the check will merely be to see if the user is logged in.
protected AuthorizeCore ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
Результат bool

AuthorizeUserAttribute() публичный Метод

Requires the user to be logged in, but not of any particular role.
public AuthorizeUserAttribute ( ) : System
Результат System

HandleUnauthorizedRequest() защищенный Метод

If the user is logged in, a 403 view will be rendered. If the user is not logged in, the action will be passed onto the default handler (asking them to login).
protected HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext
Результат void