AuthApiAttribute

Configures the roles required to access an api controller or action.

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

Constructors

AuthApiAttribute

Initializes a new instance of AuthApiAttribute.

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

In this document