ColorVision.Rbac
1.6.0
dotnet add package ColorVision.Rbac --version 1.6.0
NuGet\Install-Package ColorVision.Rbac -Version 1.6.0
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="ColorVision.Rbac" Version="1.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorVision.Rbac" Version="1.6.0" />
<PackageReference Include="ColorVision.Rbac" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ColorVision.Rbac --version 1.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ColorVision.Rbac, 1.6.0"
#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.
#:package ColorVision.Rbac@1.6.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ColorVision.Rbac&version=1.6.0
#tool nuget:?package=ColorVision.Rbac&version=1.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ColorVision.Rbac
Windows/WPF 的本地账户、角色、权限、会话与审计模块,并提供用户中心使用统计;不是覆盖整个产品的统一认证或授权内核。
包与运行前提
- 当前面向
net10.0-windows7.0/ x64,依赖 SqlSugar、本地 SQLite 及 ColorVision 共享模块;具体依赖和版本以ColorVision.Rbac.csproj为准。 - 首次构造
RbacManager会创建或初始化本地数据库、引导管理员与权限并启动会话清理定时器;打开管理界面可能触发这些动作,不是只读检查。用户中心的流程统计另读已配置的业务数据库。 - 当前仍有未修复的授权限制:无结构有效缓存时初始化为
Administrator,IsUserLoggedIn()只检查缓存字段,不验证会话有效性。自动登录失败不保证清掉缓存权限,登出清本地状态也不保证数据库中的会话已成功撤销。不要把这些现状当作安全设计建议。
权威知识与构建
RBAC:登录缓存、会话与权限边界维护服务职责、登录/登出分支、用户中心统计口径和验证缺口。本 README 会进入 NuGet 包根目录,docs/ 不保证随包存在;链接用于源码仓库,完整契约需读取与包版本匹配的源码知识。
从仓库根目录在 Windows 上执行以下本地构建:会还原依赖、写入产物,并按项目的 GeneratePackageOnBuild 配置生成包;不发布,也不验证登录或数据库运行。
dotnet build .\UI\ColorVision.Rbac\ColorVision.Rbac.csproj -p:Platform=x64 -v:minimal
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-windows7.0
- ColorVision.Common (>= 1.6.0)
- ColorVision.Database (>= 1.6.0)
- ColorVision.Solution (>= 1.6.0)
- ColorVision.Themes (>= 1.5.7.2)
- ColorVision.UI (>= 1.6.0)
- QRCoder.Xaml (>= 1.8.0)
- SqlSugarCore (>= 5.1.4.221)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.