Class MyAuthorizedServiceWithRole
Inheritance
MyAuthorizedServiceWithRole
Assembly: Volo.Abp.Authorization.Tests.dll
Syntax
[Authorize(Roles = "MyRole")]
public class MyAuthorizedServiceWithRole : IMyAuthorizedServiceWithRole, ITransientDependency
Constructors
MyAuthorizedServiceWithRole()
Declaration
public MyAuthorizedServiceWithRole()
Methods
ProtectedByAnotherRole()
Declaration
[Authorize(Roles = "MyAnotherRole")]
public virtual Task<int> ProtectedByAnotherRole()
Returns
ProtectedByRole()
Declaration
public virtual Task<int> ProtectedByRole()
Returns
ProtectedByScheme()
Declaration
[Authorize(AuthenticationSchemes = "Bearer")]
public virtual Task<int> ProtectedByScheme()
Returns
Implements
Extension Methods