EaCloud.Identity
7.0.6.9
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package EaCloud.Identity --version 7.0.6.9
NuGet\Install-Package EaCloud.Identity -Version 7.0.6.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EaCloud.Identity" Version="7.0.6.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EaCloud.Identity --version 7.0.6.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EaCloud.Identity, 7.0.6.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EaCloud.Identity as a Cake Addin #addin nuget:?package=EaCloud.Identity&version=7.0.6.9 // Install EaCloud.Identity as a Cake Tool #tool nuget:?package=EaCloud.Identity&version=7.0.6.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EaCloud 身份认证组件
说明
EaCloud 身份认证组件,基于 AspNetCore.Identity 和 EaCloud数据仓储系统 的身份认证实现。
功能结构
- EaCloud.Identity
- 身份认证Authentication
- 实现用户Claims提供器
IUserClaimsProvider
- Cookie
- 实现Cookie登录,并刷新在线用户信息
- JwtBearer
- 实现 Jwt Token 的构建功能
- 实现 Jwt Token 的刷新机制
- OAuth2
- 实现
微信
、钉钉
、抖音
、QQ
、Microsoft
、Github
三方登录功能
- 实现
- 实现用户Claims提供器
- 身份标识Identity
- 实现用户数据管理功能,以及
用户角色
、用户组织机构
的绑定管理 - 实现角色数据管理功能,以及
用户角色
、角色组织机构
的绑定管理 - 实现组织机构数据树形管理功能,实现用户登录组织及部门,可用于后续的数据权限处理
- 重写UserStore,RoleStore,使用现有IRepository进行数据存储
- 实现第三方OAuth2认证系统的整合
- 在线用户信息缓存系统,实现用户信息刷新
- 实现用户数据管理功能,以及
- 身份认证Authentication
用法
- 通过nuget引用
EaCloud.Identity
程序集
Install-Package EaCloud.Identity
- 在
appsettings.json
中 的EaCloud
节点下添加如下配置节点
{
//第三方OAuth2登录
"OAuth2": {
//微信
"WeChat": {
"ClientId": "你的微信AppId",
"ClientSecret": "你的微信AppKey",
"Enabled": true //是否启用
},
//钉钉
"DingTalk": {
"ClientId": "你的钉钉AppId",
"ClientSecret": "你的钉钉AppKey",
"Enabled": true //是否启用
},
//抖音
"TikTok": {
"ClientId": "你的抖音AppID",
"ClientSecret": "你的抖音AppKey",
"Enabled": true //是否启用
},
//腾讯QQ
"QQ": {
"ClientId": "你的QQ互联项目AppId",
"ClientSecret": "你的QQ互联项目AppKey",
"Enabled": false //是否启用
},
//微软账户
"Microsoft": {
"ClientId": "你的微软项目ClientId",
"ClientSecret": "你的微软项目ClientSecret",
"Enabled": false //是否启用
},
//GitHub账户
"GitHub": {
"ClientId": "你的GitHub项目ClientId",
"ClientSecret": "你的GitHub项目ClientSecret",
"Enabled": false //是否启用
}
},
//JWT身份认证选项
"Jwt": {
"Issuer": "eacloud by seonsoft", //发行方
"Audience": "eacloud clients audience", //订阅方
"Secret": "{26289316-2BE5-4500-8925-71DDBBB86E5E}", //密钥
"AccessExpireMins": 15, //15分钟 //AccessToken有效期分钟数
"RefreshExpireMins": 10080, // 7天 //RefreshToken有效期分钟数
"IsRefreshAbsoluteExpired": false, //RefreshToken是否绝对过期
"Enabled": true //是否启用
},
//Cookie身份认证选项
"Cookie": {
"CookieName": "Cookie名称", //Cookie名称
"LoginPath": "登录地址", //登录地址
"LogoutPath": "登出地址", //登出地址
"AccessDeniedPath": "无权限地址", //无权限地址
"ReturnUrlParameter": "返回Url参数名,默认为 ReturnUrl", //返回Url参数名,默认为 ReturnUrl
"ExpireMins": 5, //过期分钟数
"SlidingExpiration": true, //是否滑动过期
"Enabled": false //是否启用
},
}
交流
QQ群号:863605868 | 微信号:SeonHu |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Authentication.GitHub.Core (>= 1.0.0)
- EaCloud.AspNetCore (>= 7.0.6.9)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on EaCloud.Identity:
Package | Downloads |
---|---|
EaCloud.Authorization.Functions
EaCloud 功能权限组件,API功能权限的设计实现。 |
|
EaCloud.Pack.Identity
EaCloud 身份认证模块,封装基于 EaCloud 身份认证组件的功能实现。 |
|
EaCloud.Authorization.Datas
EaCloud 数据权限组件,对应用中数据权限进行授权的设计实现。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.1.8 | 86 | 11/13/2024 |
8.0.1.7 | 227 | 10/9/2024 |
8.0.1.6 | 219 | 9/29/2024 |
8.0.1.5 | 263 | 9/13/2024 |
8.0.1.4 | 268 | 8/10/2024 |
8.0.1.3 | 235 | 8/7/2024 |
8.0.1.2 | 256 | 8/7/2024 |
8.0.1.1 | 250 | 8/7/2024 |
8.0.0.9 | 232 | 8/7/2024 |
8.0.0.8 | 183 | 8/5/2024 |
8.0.0.7 | 185 | 8/2/2024 |
8.0.0.6 | 194 | 8/1/2024 |
8.0.0.5 | 200 | 8/1/2024 |
8.0.0.4 | 148 | 7/31/2024 |
8.0.0.3 | 166 | 7/30/2024 |
8.0.0.2 | 183 | 7/25/2024 |
8.0.0.1 | 192 | 7/24/2024 |
7.0.9.4 | 337 | 7/19/2024 |
7.0.9.3 | 327 | 7/11/2024 |
7.0.9.2 | 331 | 7/6/2024 |
7.0.9.1 | 334 | 7/3/2024 |
7.0.8.9 | 349 | 6/28/2024 |
7.0.8.8 | 357 | 6/26/2024 |
7.0.8.7 | 355 | 6/22/2024 |
7.0.8.6 | 350 | 6/14/2024 |
7.0.8.5 | 366 | 5/31/2024 |
7.0.8.4 | 346 | 5/21/2024 |
7.0.8.3 | 365 | 5/21/2024 |
7.0.8.2 | 304 | 5/20/2024 |
7.0.8.1 | 337 | 5/20/2024 |
7.0.7.9 | 305 | 5/15/2024 |
7.0.7.8 | 327 | 5/10/2024 |
7.0.7.7 | 303 | 5/9/2024 |
7.0.7.6 | 329 | 5/9/2024 |
7.0.7.5 | 368 | 5/7/2024 |
7.0.7.4 | 361 | 4/28/2024 |
7.0.7.3 | 369 | 4/26/2024 |
7.0.7.2 | 358 | 4/21/2024 |
7.0.7.1 | 383 | 4/19/2024 |
7.0.6.9 | 394 | 4/15/2024 |
7.0.6.8 | 324 | 4/11/2024 |
7.0.6.7 | 326 | 4/11/2024 |
7.0.6.6 | 338 | 4/7/2024 |
7.0.6.5 | 354 | 4/7/2024 |
7.0.6.4 | 321 | 4/7/2024 |
7.0.6.3 | 342 | 4/7/2024 |
7.0.6.2 | 347 | 4/3/2024 |
7.0.6.1 | 351 | 4/3/2024 |
7.0.5.9 | 335 | 3/27/2024 |
7.0.5.8 | 344 | 3/23/2024 |
7.0.5.7 | 354 | 3/17/2024 |
7.0.5.6 | 342 | 3/17/2024 |
7.0.5.5 | 345 | 3/16/2024 |
7.0.5.4 | 338 | 3/13/2024 |
7.0.5.3 | 339 | 3/13/2024 |
7.0.5.2 | 366 | 3/6/2024 |
7.0.5.1 | 349 | 2/21/2024 |
7.0.4.9 | 340 | 2/21/2024 |
7.0.4.8 | 335 | 2/18/2024 |
7.0.4.7 | 337 | 2/5/2024 |
7.0.4.6 | 354 | 2/1/2024 |
7.0.4.5 | 336 | 1/26/2024 |
7.0.4.4 | 353 | 1/22/2024 |
7.0.4.3 | 344 | 1/17/2024 |
7.0.4.2 | 322 | 1/16/2024 |
7.0.4.1 | 348 | 1/16/2024 |
7.0.3.9 | 328 | 1/15/2024 |
7.0.3.8 | 384 | 1/3/2024 |
7.0.3.7 | 337 | 12/28/2023 |
7.0.3.6 | 327 | 12/27/2023 |
7.0.3.5 | 342 | 12/22/2023 |
7.0.3.4 | 322 | 12/22/2023 |
7.0.3.3 | 399 | 12/13/2023 |
7.0.3.2 | 357 | 12/13/2023 |
7.0.3.1 | 357 | 12/12/2023 |
7.0.2.9 | 409 | 11/26/2023 |
7.0.2.8 | 404 | 11/26/2023 |
7.0.2.7 | 386 | 9/26/2023 |
7.0.2.6 | 365 | 9/25/2023 |
7.0.2.5 | 372 | 9/15/2023 |
7.0.2.4 | 433 | 7/27/2023 |
7.0.2.3 | 441 | 7/22/2023 |
7.0.2.2 | 435 | 7/22/2023 |
7.0.2.1 | 409 | 7/21/2023 |
7.0.1.9 | 451 | 7/21/2023 |
7.0.1.8 | 435 | 7/20/2023 |
7.0.1.7 | 391 | 7/20/2023 |
7.0.1.6 | 492 | 7/4/2023 |
7.0.1.5 | 465 | 6/16/2023 |
7.0.1.4 | 467 | 6/13/2023 |
7.0.1.3 | 535 | 6/8/2023 |
7.0.1.2 | 540 | 6/2/2023 |
7.0.1.1 | 591 | 5/11/2023 |
7.0.0.9 | 565 | 5/10/2023 |
7.0.0.8 | 564 | 5/10/2023 |
7.0.0.7 | 634 | 4/19/2023 |
7.0.0.6 | 613 | 4/18/2023 |
7.0.0.5 | 691 | 3/27/2023 |
7.0.0.4 | 677 | 3/23/2023 |
7.0.0.3 | 824 | 1/31/2023 |
7.0.0.2 | 741 | 1/30/2023 |
7.0.0.1 | 805 | 12/24/2022 |
6.0.2.5 | 1,608 | 11/16/2022 |
6.0.2.4 | 1,709 | 11/10/2022 |
6.0.2.3 | 2,089 | 10/11/2022 |
6.0.2.2 | 2,272 | 9/23/2022 |
6.0.2.1 | 2,387 | 8/14/2022 |
6.0.1.9 | 2,396 | 8/13/2022 |
6.0.1.8 | 2,503 | 6/6/2022 |
6.0.1.7 | 2,533 | 5/26/2022 |
6.0.1.6 | 2,658 | 5/11/2022 |
6.0.1.5 | 2,597 | 5/10/2022 |
6.0.1.4 | 2,787 | 4/8/2022 |
6.0.1.3 | 2,773 | 4/2/2022 |
6.0.1.2 | 2,807 | 4/2/2022 |
6.0.1.1 | 2,885 | 3/18/2022 |
6.0.0.9 | 2,845 | 3/5/2022 |
6.0.0.8 | 2,935 | 2/19/2022 |
6.0.0.7 | 2,944 | 2/15/2022 |
6.0.0.6 | 2,999 | 2/14/2022 |
6.0.0.5 | 3,082 | 1/28/2022 |
6.0.0.4 | 2,751 | 1/13/2022 |
6.0.0.3 | 2,701 | 1/12/2022 |
6.0.0.2 | 1,738 | 12/21/2021 |
6.0.0.1 | 1,798 | 12/13/2021 |
5.0.3.7 | 2,481 | 10/16/2021 |
5.0.3.6 | 1,662 | 10/14/2021 |
5.0.3.5 | 1,590 | 10/13/2021 |
5.0.3.4 | 1,779 | 10/8/2021 |
5.0.3.3 | 1,583 | 9/17/2021 |
5.0.3.2 | 1,852 | 9/16/2021 |
5.0.3.1 | 1,808 | 9/15/2021 |
5.0.2.9 | 1,737 | 9/15/2021 |
5.0.2.8 | 1,743 | 8/31/2021 |
5.0.2.7 | 1,753 | 8/28/2021 |
5.0.2.6 | 1,708 | 8/22/2021 |
5.0.2.5 | 1,620 | 8/13/2021 |
5.0.2.4 | 1,607 | 8/13/2021 |
5.0.2.3 | 1,549 | 7/8/2021 |
5.0.2.2 | 1,555 | 7/1/2021 |
5.0.2.1 | 1,605 | 6/16/2021 |
5.0.1.9 | 1,493 | 5/12/2021 |
5.0.1.8 | 1,462 | 5/9/2021 |
5.0.1.7 | 1,581 | 5/7/2021 |
5.0.1.6 | 1,309 | 4/17/2021 |
5.0.1.5 | 1,241 | 4/16/2021 |
5.0.1.4 | 1,225 | 4/15/2021 |
5.0.1.3 | 1,205 | 4/15/2021 |
5.0.1.2 | 1,283 | 4/12/2021 |