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
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
- Configure Event Handlers through
- Custom Event Service Implementation -
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: