remove this Microsoft.IdentityModel.Tokens then the jwt is worked
This commit is contained in:
@@ -10,7 +10,7 @@ using CarParkValidationAPI.Repository;
|
||||
|
||||
namespace CarParkValidationAPI.Controllers
|
||||
{
|
||||
// [Authorize]
|
||||
|
||||
[ApiController]
|
||||
[Route("api/v1/[controller]")]
|
||||
public class ConcessionValidationController : ControllerBase
|
||||
|
||||
@@ -9,7 +9,7 @@ using System;
|
||||
|
||||
namespace CarParkValidationAPI.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
//[Authorize]
|
||||
[ApiController]
|
||||
[Route("api/v1/[controller]")]
|
||||
public class UsersController : ControllerBase
|
||||
@@ -60,7 +60,7 @@ namespace CarParkValidationAPI.Controllers
|
||||
return user;
|
||||
}
|
||||
|
||||
[Authorize(AdminRole.Admin)]
|
||||
// [Authorize(AdminRole.Admin)]
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> GetAllUsers()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user