Reputation: 421
I am getting the following error in .Net Core. after the user is authenticated succeefully.
Authorization failed. These requirements were not met: ClaimsAuthorizationRequirement:Claim.Type=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/sid
and sometimes if a user is using another browser then it is working. How to resolve that?
Thanks in advance!
Upvotes: 2
Views: 15866
Reputation: 28267
According to the error message, you could find the reason why this user couldn't access the page is one of the claims is not match the Authorization requirement.
I guess one of your controller or razor page will check the client sent token's sid value. If the value is not match, it will not let the user access the page. This is a expected behavior. If you don't want it, I suggest you could check your Authorization requirement codes and modify it by yourself. More details about claim-based Authorization , you could refer to this article.
Upvotes: 2