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.
|
|
2 months ago | |
|---|---|---|
| .. | ||
| LINGYUN/Abp/Webhooks/Identity | 3 years ago | |
| FodyWeavers.xml | 4 years ago | |
| FodyWeavers.xsd | 4 years ago | |
| LINGYUN.Abp.Webhooks.Identity.csproj | 2 months ago | |
| README.EN.md | 1 year ago | |
| README.md | 1 year ago | |
README.md
LINGYUN.Abp.Webhooks.Identity
Webhook身份集成模块,提供与ABP身份系统的集成支持。
功能特性
- 与ABP身份系统集成
- 支持用户和租户级别的Webhook
- 身份相关的Webhook事件
模块引用
[DependsOn(typeof(AbpWebhooksIdentityModule))]
public class YouProjectModule : AbpModule
{
// other
}
基本用法
- 处理身份相关的Webhook
public class YourIdentityWebhookHandler : IWebhookHandler, ITransientDependency
{
public async Task HandleWebhookAsync(WebhookPayload webhook)
{
if (webhook.WebhookName == "User.Created")
{
// 处理用户创建事件
}
}
}
- 发布身份相关的Webhook
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 */ }
);
}
}