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

  1. Handle Identity-related Webhooks
public class YourIdentityWebhookHandler : IWebhookHandler, ITransientDependency
{
    public async Task HandleWebhookAsync(WebhookPayload webhook)
    {
        if (webhook.WebhookName == "User.Created")
        {
            // Handle user creation event
        }
    }
}
  1. 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 */ }
        );
    }
}