这是基于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.
 
 
 
 
 
 

1.7 KiB

LINGYUN.Abp.IdentityServer.Domain

IdentityServer domain module, extending the domain layer functionality of IdentityServer4.

Features

  • Event Service Extensions
    • Custom Event Service Implementation - AbpEventService
    • Configurable Event Handlers - IAbpIdentityServerEventServiceHandler
    • Default Event Handler - AbpIdentityServerEventServiceHandler
      • Support for Failure Event Logging
      • Support for Information Event Logging
      • Support for Success Event Logging
      • Support for Error Event Logging
    • Event Handler Registration Mechanism
      • Configure Event Handlers through AbpIdentityServerEventOptions

Module Dependencies

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

Required Modules

  • Volo.Abp.IdentityServer.AbpIdentityServerDomainModule - ABP IdentityServer Domain Module

Configuration and Usage

Event Handler Configuration

Configure<AbpIdentityServerEventOptions>(options =>
{
    // Add custom event handler
    options.EventServiceHandlers.Add<YourEventServiceHandler>();
});

Event Handler Implementation

public class YourEventServiceHandler : IAbpIdentityServerEventServiceHandler
{
    public virtual bool CanRaiseEventType(EventTypes evtType)
    {
        // Implement event type validation logic
        return true;
    }

    public virtual Task RaiseAsync(Event evt)
    {
        // Implement event handling logic
        return Task.CompletedTask;
    }
}

Related Documentation:

查看中文文档