mirror of https://github.com/abpframework/abp.git
2 changed files with 19 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
using System.Threading.Tasks; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Security.Claims; |
|||
|
|||
namespace Volo.Abp.OpenIddict; |
|||
|
|||
public class AbpDynamicClaimsOpenIddictClaimsPrincipalHandler: IAbpOpenIddictClaimsPrincipalHandler, ITransientDependency |
|||
{ |
|||
public virtual async Task HandleAsync(AbpOpenIddictClaimsPrincipalHandlerContext context) |
|||
{ |
|||
var abpClaimsPrincipalFactory = context |
|||
.ScopeServiceProvider |
|||
.GetRequiredService<IAbpClaimsPrincipalFactory>(); |
|||
|
|||
await abpClaimsPrincipalFactory.CreateDynamicAsync(context.Principal); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue