From 52e61a1a1eeffed16db52d2fb71367c847ee3e9b Mon Sep 17 00:00:00 2001 From: feijie Date: Tue, 10 Dec 2024 22:55:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(docs):=20=E6=B7=BB=E5=8A=A0Security?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LINGYUN.Abp.Security/README.EN.md | 38 +++++++++++++++++++ .../security/LINGYUN.Abp.Security/README.md | 38 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 aspnet-core/framework/security/LINGYUN.Abp.Security/README.EN.md create mode 100644 aspnet-core/framework/security/LINGYUN.Abp.Security/README.md diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Security/README.EN.md b/aspnet-core/framework/security/LINGYUN.Abp.Security/README.EN.md new file mode 100644 index 000000000..ea633b84b --- /dev/null +++ b/aspnet-core/framework/security/LINGYUN.Abp.Security/README.EN.md @@ -0,0 +1,38 @@ +# LINGYUN.Abp.Security + +## Module Description + +Extends the Abp Security module, providing additional security features. + +### Base Modules + +* Volo.Abp.Security + +### Features + +* Provides JWT Claims type mapping functionality +* Extends standard JWT Claims type definitions + +### Configuration + +No special configuration items + +### How to Use + +1. Add `AbpSecurityModule` dependency + +```csharp +[DependsOn(typeof(AbpSecurityModule))] +public class YouProjectModule : AbpModule +{ +} +``` + +2. Use JWT Claims mapping + +```csharp +// JWT Claims type mapping is done automatically, no manual configuration needed +// If you need custom mapping, you can configure it in the module's ConfigureServices method +``` + +[Back to TOC](../../../README.md) diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Security/README.md b/aspnet-core/framework/security/LINGYUN.Abp.Security/README.md new file mode 100644 index 000000000..03110d2bb --- /dev/null +++ b/aspnet-core/framework/security/LINGYUN.Abp.Security/README.md @@ -0,0 +1,38 @@ +# LINGYUN.Abp.Security + +## 模块说明 + +扩展 Abp Security 模块,提供额外的安全功能。 + +### 基础模块 + +* Volo.Abp.Security + +### 功能定义 + +* 提供 JWT Claims 类型映射功能 +* 扩展了标准的 JWT Claims 类型定义 + +### 配置定义 + +无特殊配置项 + +### 如何使用 + +1. 添加 `AbpSecurityModule` 依赖 + +```csharp +[DependsOn(typeof(AbpSecurityModule))] +public class YouProjectModule : AbpModule +{ +} +``` + +2. 使用 JWT Claims 映射 + +```csharp +// JWT Claims 类型映射会自动完成,无需手动配置 +// 如果需要自定义映射,可以在模块的 ConfigureServices 方法中进行配置 +``` + +[返回目录](../../../README.md)