0
kalidarscope created
We need to change current session value
if (string.IsNullOrEmpty(user.EnvironmentId) == false)
{
claim.Identities.First().AddClaim(new Claim("Envid", ""));
}
i tried to
ASAPSessions.Envid="new session"
7 Answer(s)
-
0
Is your authorization method a cookie or jwt?
-
0
Jwt
-
0
JWT is self-contained with Claims. If you want to implement update claims, it will be very complicated.
I suggest you query based on user ID, etc. instead of storing it in claims(session).
By the way, jwt will show the cliams plain text to the client.
-
0
What is the default authorization used in ASP.NET Core and Angular? We are using default authentication.
-
0
Angular uses jwt by default
-
0
-
0
JWT itself contains all the Claims, you can't modify it on the back end.