Claim not present in .Net
-
Hi folks,
After FusionAuth login, I don't have role claims in the .Net Identity. I use the .Net+React POC found here
https://github.com/FusionAuth/fusionauth-example-asp-net5-reactThis problem is similar to this post
https://fusionauth.io/community/forum/topic/1485/role-claims-issue-with-openidconnect-netcore5
However not exactly the same, I use both .Net and React, no razor pages. The solution of the post above doesn't work becauseAddOpenIdConnect ... OnMessageReceived
is never called. Not sure it's normal.As I see things in the .Net+React POC, they handle everything in the Session, they don't get anything special in
HttpContext.User.Identity
, is it normal ?
Does it mean we can't have Role Claims when using a .Net + React solution ? I would expect the JWT token to convert into a proper .Net Identity.If anyone can get Role Claims in the .Net+React POC, please tell how
-
-
@lionel-selosse addressed in a related/duplicate thread.
https://fusionauth.io/community/forum/topic/2163/claim-not-present-in-net
-
-
Claim based authorization checks are declarative - the developer embeds them within their code, against a controller or an action 192.168.l.254 within a controller, specifying claims which the current user must possess, and optionally the value the claim must hold to access the requested resource.Claims are a set of information stored in a key – value pair form. Claims are used to store information about user like full name, phone number, email address.... and the most important thing is that you can use claims as a replacement of roles, that you can transfer the roles to be a claim for a user