Skip to content

Commit 5692812

Browse files
committed
Even more Auth for Sample
1 parent 294849e commit 5692812

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/KK.AspNetCore.EasyAuthAuthentication.Sample/Controllers/SampleDataController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public IEnumerable<WeatherForecast> WeatherForecasts()
3030
}
3131

3232
[HttpGet("[action]")]
33+
[Authorize(Roles = "SystemAdmin")]
3334
public string UserName()
3435
{
3536
var name = User.HasClaim(ClaimTypes.Name, "kik@tsmmscloud.onmicrosoft.de");

src/KK.AspNetCore.EasyAuthAuthentication.Sample/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
namespace KK.AspNetCore.EasyAuthAuthentication.Sample
32
{
43
using Microsoft.AspNetCore.Builder;

0 commit comments

Comments
 (0)