We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 294849e commit 5692812Copy full SHA for 5692812
2 files changed
src/KK.AspNetCore.EasyAuthAuthentication.Sample/Controllers/SampleDataController.cs
@@ -30,6 +30,7 @@ public IEnumerable<WeatherForecast> WeatherForecasts()
30
}
31
32
[HttpGet("[action]")]
33
+ [Authorize(Roles = "SystemAdmin")]
34
public string UserName()
35
{
36
var name = User.HasClaim(ClaimTypes.Name, "kik@tsmmscloud.onmicrosoft.de");
src/KK.AspNetCore.EasyAuthAuthentication.Sample/Startup.cs
@@ -1,4 +1,3 @@
1
-
2
namespace KK.AspNetCore.EasyAuthAuthentication.Sample
3
4
using Microsoft.AspNetCore.Builder;
0 commit comments