I've found solutions for retrieving the logged in user's information for ASP.NET Core 6.0 MVC and Blazor but NOT for razor pages web apps. Am I supposed to create a controller and a startup.cs for my razor page web app OR is there another way?
Here's information on my set up...
- ASP.NET Core 6.0 web app (razor pages, not MVC)
- This site will be accessible from a parent site which the user will sign into using SSO so I don't need to create an identity solution; just need to retrieve the username, userid, roles they're members of & etc.
- Hosted in IIS
- Only users belonging to a certain role will be able to see the site; to be set in IIS