|
|
|
@ -3,7 +3,9 @@ using LINGYUN.Abp.Identity; |
|
|
|
using LINGYUN.Abp.Identity.Session; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions; |
|
|
|
using Volo.Abp.IdentityServer; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.Security.Claims; |
|
|
|
|
|
|
|
namespace LINGYUN.Abp.IdentityServer.Session; |
|
|
|
|
|
|
|
@ -20,6 +22,11 @@ public class AbpIdentityServerSessionModule : AbpModule |
|
|
|
options.EventServiceHandlers.Add<AbpIdentitySessionEventServiceHandler>(); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpClaimsServiceOptions>(options => |
|
|
|
{ |
|
|
|
options.RequestedClaims.Add(AbpClaimTypes.SessionId); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<IdentitySessionSignInOptions>(options => |
|
|
|
{ |
|
|
|
// UserLoginSuccessEvent由IdentityServer发布, 无需显式保存会话
|
|
|
|
|