Skip to content

Commit

Permalink
Document ConfigureSecurityStampOptions (#14926)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Dec 21, 2023
1 parent a5395f4 commit 4488198
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public class ConfigureSecurityStampOptions : IPostConfigureOptions<SecurityStamp
{
public void PostConfigure(string name, SecurityStampValidatorOptions options)
{
// While updating the principal, any customized claims set using IUserClaimsProvider
// or obtained from an external identity will persist and transfer to the refreshed/new principal.
options.OnRefreshingPrincipal = principalContext =>
{
var currentIdentity = principalContext.CurrentPrincipal?.Identities?.FirstOrDefault();
Expand Down

0 comments on commit 4488198

Please sign in to comment.