SOLVED Claim not present in .Net
After FusionAuth login, I don't have role claims in the .Net Identity. I use the .Net+React POC found here
This problem is similar to this post
However not exactly the same, I use both .Net and React, no razor pages. The solution of the post above doesn't work because
AddOpenIdConnect ... OnMessageReceivedis 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
joshua last edited by joshua
@lionel-selosse addressed in a related/duplicate thread.
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