-
-
Save artisticcheese/52f9cf12e8d31aade2aab9cd7345bfea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Authorize(Roles = "Domain Admins")] | |
public IActionResult Windows() | |
{ | |
return Content ("You are " + User.Identity.Name + "; Authentication Type:" + User.Identity.AuthenticationType ); | |
} | |
[Authorize(Roles = "Domain Users")] | |
public IActionResult Users() | |
{ | |
return Content("You are " + User.Identity.Name + "; Authentication Type:" + User.Identity.AuthenticationType); | |
} | |
public IActionResult LocalUsers() | |
{ | |
return Content("You are " + User.Identity.Name + "; Authentication Type:" + User.Identity.AuthenticationType); | |
} | |
[AllowAnonymous] | |
public IActionResult Anonymous() | |
{ | |
return Content ("You are " + User.Identity.Name + "; Authentication Type:" + User.Identity.AuthenticationType );; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment