Skip to content

Commit

Permalink
Document ConfigureSecurityStampOptions (OrchardCMS#14926)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored and urbanit committed Mar 18, 2024
1 parent 4c2b6b5 commit 19dcd14
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 19dcd14

Please sign in to comment.