python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Razor Pages & Role Based Authorzation. Got trouble with applying roles to Shared Layout
I am working on my school project, which I have done. And want to try to add something more.
Right now I have the problem with role-based authorzation. I have set up in the controllers to autherize on...
Gamalina
Votes: 0
Answers: 0
How to check if a logged in user is in a role in ASP.NET Core
Hello I'm somehow new in ASP.NET Core, I want to check, in the controller, if a logged-in user is in a certain role, to return the appropriate view. One view with the CRUD links, the other read-only.
...
Aladine TK
Votes: 0
Answers: 1
AADB2C90238: The provided token does not contain a valid issuer. Please provide another token and try again
I am using ADB2C and added AAD as identity provider for Home realm discovery. HRD is working as expected and it redirect user to AAD(https://login.microsoftonline.com) basis on domain for authenticati...
Jaydeep Suryawanshi
Votes: 0
Answers: 3
Is there a way to return a single Claim value using a key or identifier in a View?
I am accessing all my claims by looping through all of them using a for each statement. I want to be getting a single value using the identifier like below where the name is the identifier.
User.Claim...
codeninja
Votes: 0
Answers: 0