C# Class MvcTemplate.Components.Security.AuthorizationProvider

Inheritance: IAuthorizationProvider
Mostrar archivo Open project: NonFactors/MVC5.Template Class Usage Examples

Private Properties

Property Type Description
AllowsUnauthorized System.Boolean
GetAction String
GetArea String
GetAuthorizeAs AuthorizeAsAttribute
GetController String
GetControllerType System.Type
GetMethod System.Reflection.MethodInfo
GetRequiredPermission String
GetValidControllers IEnumerable
GetValidMethods IEnumerable

Public Methods

Method Description
AuthorizationProvider ( Assembly controllersAssembly ) : MvcTemplate.Components.Mvc
IsAuthorizedFor ( Int32 accountId, String area, String controller, String action ) : System.Boolean
Refresh ( ) : void

Private Methods

Method Description
AllowsUnauthorized ( Type controller, MethodInfo method ) : System.Boolean
GetAction ( MethodInfo method ) : String
GetArea ( Type type ) : String
GetAuthorizeAs ( MemberInfo action ) : AuthorizeAsAttribute
GetController ( Type type ) : String
GetControllerType ( String area, String controller ) : Type
GetMethod ( Type controller, String action ) : MethodInfo
GetRequiredPermission ( Type type, MethodInfo method ) : String
GetValidControllers ( Assembly assembly ) : IEnumerable
GetValidMethods ( Type controller ) : IEnumerable

Method Details

AuthorizationProvider() public method

public AuthorizationProvider ( Assembly controllersAssembly ) : MvcTemplate.Components.Mvc
controllersAssembly System.Reflection.Assembly
return MvcTemplate.Components.Mvc

IsAuthorizedFor() public method

public IsAuthorizedFor ( Int32 accountId, String area, String controller, String action ) : System.Boolean
accountId System.Int32
area String
controller String
action String
return System.Boolean

Refresh() public method

public Refresh ( ) : void
return void