I am using MVC5 with Owin identity.
I am struggling to reuse any custom Claims in regenerateIdentityCallback.
I have in Startup this configuration (as provided i
You can obtain the same result by doing this (context.Identity is the previous identity):
OnValidateIdentity = context => SecurityStampValidator.OnValidateIdentity(
validateInterval: TimeSpan.FromSeconds(30),
regenerateIdentityCallback:
(manager, user) =>
user.GenerateUserIdentityAsync(manager, context.Identity),
getUserIdCallback: (ci) => Guid.Parse(ci.GetUserId())).Invoke(context)