cCoder.AppSecurity
2026.8.1.146
dotnet add package cCoder.AppSecurity --version 2026.8.1.146
NuGet\Install-Package cCoder.AppSecurity -Version 2026.8.1.146
<PackageReference Include="cCoder.AppSecurity" Version="2026.8.1.146" />
<PackageVersion Include="cCoder.AppSecurity" Version="2026.8.1.146" />
<PackageReference Include="cCoder.AppSecurity" />
paket add cCoder.AppSecurity --version 2026.8.1.146
#r "nuget: cCoder.AppSecurity, 2026.8.1.146"
#:package cCoder.AppSecurity@2026.8.1.146
#addin nuget:?package=cCoder.AppSecurity&version=2026.8.1.146
#tool nuget:?package=cCoder.AppSecurity&version=2026.8.1.146
cCoder.AppSecurity
cCoder.AppSecurity contains the App Security domain for the cCoder platform.
It owns application-level users, roles, privileges, and user-role links. SSO users and account tokens remain owned by cCoder.Security.
Local Configuration
Configuration binds directly into AppSecurityConfiguration. Leave secrets
empty in appsettings and define AppSecurity__ConnectionString as a user-level
or machine-level environment variable. The standalone hosts also bind
SecurityConfiguration; its secrets use Security__ConnectionString and
Security__DecryptionKey. Restart Visual Studio, select the Web and
HostedServices startup projects, and press F5. No configuration conversion step
is required.
Contents
src/cCoder.AppSecurityThe main library package published to NuGet.src/AppSecurity.WebThe public API host for the App Security domain.src/AppSecurity.HostedServicesThe background/event host for App Security maintenance and event handlers.src/cCoder.AppSecurity.TestsUnit tests for the domain.src/AppSecurity.AcceptanceTestsAcceptance tests for the Web host.src/AppSecurity.HostedServices.AcceptanceTestsAcceptance tests for the Hosted Services host.
Responsibilities
AppSecurity creates and maintains app-local security state:
- Apps and app domains.
- App users.
- Roles and privileges.
- User-role links.
- App usage analysis hosted service.
- App-local cleanup driven by app delete events.
AppSecurity consumes cCoder.Security account lifecycle events, resolves the target app from the event request domain, and creates or updates the related app-local user and default role links. It does not send account emails and does not own SSO users or tokens.
Security account events consumed:
security_account_registration_createdsecurity_account_registration_confirmedsecurity_account_invitation_createdsecurity_account_invitation_acceptedsecurity_account_password_reset_requested
Build
dotnet build src/cCoder.AppSecurity.slnx -v minimal
Test
dotnet test src/cCoder.AppSecurity.slnx -v minimal --no-build
Local Configuration
The runnable hosts read local secrets from environment variables rather than committed config.
Before running src/AppSecurity.Web or src/AppSecurity.HostedServices, set:
AppSecurity__ConnectionStringSecurity__ConnectionStringSecurity__DecryptionKey
The committed appsettings.json keeps these values blank so user or machine environment variables can supply them during local development.
AppSecurity.Web exposes /Health, the App Security API endpoints, and a small manual test UI at /.
AppSecurity.HostedServices exposes /Health plus /, which returns a plain-text report of hosted background services and event listeners.
When testing against a local cCoder.Security checkout, pass:
dotnet test src/cCoder.AppSecurity.slnx -v minimal /p:UseLocalSecurity=true
Package
The NuGet package produced by this repository is:
cCoder.AppSecurity
Publishing
GitHub Actions is configured to publish the main package using NuGet trusted publishing.
Before the first publish, configure a trusted publishing policy on nuget.org for:
- Repository owner:
ccoder-co-uk - Repository:
cCoder.AppSecurity - Workflow file:
publish.yml
The workflow also expects a NUGET_USER repository secret containing the nuget.org profile name used during trusted publishing login.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- cCoder.CodeAnalysis (>= 2026.7.30.1633)
- cCoder.Data (>= 2026.8.1.137)
- cCoder.Eventing (>= 2026.7.29.144)
- cCoder.Security (>= 2026.7.29.2358)
- cCoder.Security.Data (>= 2026.7.29.2358)
- Microsoft.AspNetCore.OData (>= 9.5.0)
- Microsoft.EntityFrameworkCore (>= 10.0.10)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.10)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.2.3)
- System.Linq.Dynamic.Core (>= 1.7.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on cCoder.AppSecurity:
| Package | Downloads |
|---|---|
|
cCoder.Core
cCoder.Core |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.8.1.146 | 0 | 8/1/2026 |
| 2026.8.1.116 | 0 | 8/1/2026 |
| 2026.7.30.1717 | 66 | 7/30/2026 |
| 2026.7.30.1520 | 38 | 7/30/2026 |
| 2026.7.30.1150 | 37 | 7/30/2026 |
| 2026.7.30.53 | 54 | 7/29/2026 |
| 2026.7.29.222 | 121 | 7/29/2026 |
| 2026.7.28.1738 | 83 | 7/28/2026 |
| 2026.7.28.53 | 137 | 7/27/2026 |
| 2026.7.28.23 | 82 | 7/27/2026 |
| 2026.7.28.4 | 86 | 7/27/2026 |
| 2026.7.27.1914 | 93 | 7/27/2026 |
| 2026.7.26.1324 | 174 | 7/26/2026 |
| 2026.7.25.2145 | 157 | 7/25/2026 |
| 2026.7.24.38 | 237 | 7/23/2026 |
| 2026.7.22.841 | 149 | 7/22/2026 |
| 2026.7.21.1338 | 104 | 7/21/2026 |
| 2026.7.21.1322 | 91 | 7/21/2026 |
| 2026.7.21.1305 | 92 | 7/21/2026 |
| 2026.7.21.1037 | 90 | 7/21/2026 |