Configures the roles required to access an api controller or action.
Initializes a new instance of AuthApiAttribute.
public Void AuthApiAttribute(requiredRoles)
Name | Type | Summary |
---|---|---|
requiredRoles | String[] | A collection of required role names. |
In this document