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.2 KiB
1.2 KiB
LINGYUN.Abp.Webhooks.Identity
Webhook identity integration module that provides integration with ABP identity system.
Features
- Integration with ABP identity system
- Support for user and tenant level webhooks
- Identity-related webhook events
Module Dependencies
[DependsOn(typeof(AbpWebhooksIdentityModule))]
public class YouProjectModule : AbpModule
{
// other
}
Basic Usage
- Handle Identity-related Webhooks
public class YourIdentityWebhookHandler : IWebhookHandler, ITransientDependency
{
public async Task HandleWebhookAsync(WebhookPayload webhook)
{
if (webhook.WebhookName == "User.Created")
{
// Handle user creation event
}
}
}
- Publish Identity-related Webhooks
public class YourService
{
private readonly IWebhookPublisher _webhookPublisher;
public YourService(IWebhookPublisher webhookPublisher)
{
_webhookPublisher = webhookPublisher;
}
public async Task PublishIdentityWebhook()
{
await _webhookPublisher.PublishAsync(
webhookName: "User.Created",
data: new { /* user data */ }
);
}
}