Browse Source
Merge pull request #18382 from abpframework/liangshiwei/patch-1
Update SecurityStampValidatorOptionsExtensions.cs
pull/18383/head
maliming
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/SecurityStampValidatorOptionsExtensions.cs
|
|
@ -11,7 +11,10 @@ public static class SecurityStampValidatorOptionsExtensions |
|
|
options.OnRefreshingPrincipal = async context => |
|
|
options.OnRefreshingPrincipal = async context => |
|
|
{ |
|
|
{ |
|
|
await SecurityStampValidatorCallback.UpdatePrincipal(context); |
|
|
await SecurityStampValidatorCallback.UpdatePrincipal(context); |
|
|
await previousOnRefreshingPrincipal?.Invoke(context); |
|
|
if(previousOnRefreshingPrincipal != null) |
|
|
|
|
|
{ |
|
|
|
|
|
await previousOnRefreshingPrincipal.Invoke(context); |
|
|
|
|
|
} |
|
|
}; |
|
|
}; |
|
|
return options; |
|
|
return options; |
|
|
} |
|
|
} |
|
|
|