AuthMvcAttribute

Configures the roles required to access a controller or action.

Namespace:
Inetdev.AspNetCore.Authorization
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Microsoft.AspNetCore.Mvc.TypeFilterAttribute

Constructors

AuthMvcAttribute

Initializes a new instance of AuthMvcAttribute.

Signature:
public Void AuthMvcAttribute(requiredRoles)
Parameters
Name Type Summary
requiredRoles String[] A collection of required role names.

Properties

ForbiddenViewName

View name for the forbidden message.

Signature:
public String ForbiddenViewName { get; set; }