A lot
This commit is contained in:
@@ -45,6 +45,11 @@ namespace KTUSAPS.Controllers
|
||||
[HttpGet("Authed")]
|
||||
public bool IsAuthed() => true;
|
||||
|
||||
[Authorize]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[HttpGet("Claims")]
|
||||
public IEnumerable<object> Claims() => User.Claims.Select((c) => new { c.Type, c.Value });
|
||||
|
||||
[Authorize("admin")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[HttpGet("Admin")]
|
||||
|
Reference in New Issue
Block a user