这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
colin 3936107340 upgrade: upgrade abp to 10.0.2 3 months ago
..
LINGYUN/Abp/IdentityServer/Session feat(session): add session_id claim type in the IDS module 2 years ago
System upgrade abp framework to 8.2.0 2 years ago
FodyWeavers.xml upgrade abp framework to 8.2.0 2 years ago
FodyWeavers.xsd upgrade abp framework to 8.2.0 2 years ago
LINGYUN.Abp.IdentityServer.Session.csproj upgrade: upgrade abp to 10.0.2 3 months ago
README.EN.md feat(docs): 添加IdentityServer模块文档 1 year ago
README.md feat(docs): 添加IdentityServer模块文档 1 year ago

README.md

LINGYUN.Abp.IdentityServer.Session

IdentityServer会话管理模块,提供用户会话管理和验证功能。

功能特性

  • 会话验证

    • AbpIdentitySessionUserInfoRequestValidator - 用户信息请求验证器
      • 验证用户会话状态
      • 验证访问令牌有效性
      • 验证用户活动状态
      • 支持OpenID Connect标准
  • 会话事件处理

    • AbpIdentitySessionEventServiceHandler - 会话事件处理器
      • 处理用户登录成功事件
        • 保存会话信息
        • 支持多租户
        • 记录客户端标识
      • 处理用户登出成功事件
        • 撤销会话
      • 处理令牌撤销成功事件
        • 撤销会话
  • 配置选项

    • 会话声明配置
      • 添加SessionId声明
    • 会话登录配置
      • 禁用显式保存会话
      • 启用显式注销会话

模块引用

[DependsOn(
    typeof(AbpIdentityServerSessionModule)
)]
public class YourModule : AbpModule
{
    // ...
}

依赖模块

  • AbpIdentityServerDomainModule - ABP IdentityServer领域模块
  • AbpIdentityDomainModule - ABP Identity领域模块
  • AbpIdentitySessionModule - ABP Identity会话模块

配置使用

配置会话选项

Configure<IdentitySessionSignInOptions>(options =>
{
    // UserLoginSuccessEvent由IdentityServer发布, 无需显式保存会话
    options.SignInSessionEnabled = false;
    // UserLoginSuccessEvent由用户发布, 需要显式注销会话
    options.SignOutSessionEnabled = true;
});

配置声明选项

Configure<AbpClaimsServiceOptions>(options =>
{
    options.RequestedClaims.Add(AbpClaimTypes.SessionId);
});

相关文档:

查看英文文档