Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 15, 2018. It is now read-only.
This repository was archived by the owner on Feb 15, 2018. It is now read-only.

Role based Authentication #269

Description

@avinash14221422

I want to impliment role based authentication in my web Api projetc
i had added scope with the name of role and assigned with admin,user,superadmin
in my controller used
[Route("getallsupportcategorieslu")]
[Authorize(Roles ="admin")]
public IHttpActionResult GetAllSupportCategoriesLU()
{
try
{
return Ok(_supportApplicationService.GetAllSupportCategoriesLU());
}
catch (Exception ex)
{
return BadRequest(ex.Message);
}
}
but it is not working

we are using bearer token. client side we are using angulr js they pass bearer token.
token authentication is working fine. but role based authentication not working.

can you please provide the sollution for any code needed for role based authentication and how to pass the roles in bearer token and how i can get the roles for authentication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions