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"
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
7 Answer(s)
-
0
Is your authorization method a cookie or jwt?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Jwt
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
What is the default authorization used in ASP.NET Core and Angular? We are using default authentication.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Angular uses jwt by default
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
-
0
JWT itself contains all the Claims, you can't modify it on the back end.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)

