net3000.adminservices 1.0.6

dotnet add package net3000.adminservices --version 1.0.6
                    
NuGet\Install-Package net3000.adminservices -Version 1.0.6
                    
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="net3000.adminservices" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="net3000.adminservices" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="net3000.adminservices" />
                    
Project file
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 net3000.adminservices --version 1.0.6
                    
#r "nuget: net3000.adminservices, 1.0.6"
                    
#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 net3000.adminservices@1.0.6
                    
#: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=net3000.adminservices&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=net3000.adminservices&version=1.0.6
                    
Install as a Cake Tool

AdminServices

Overview

The AdminServices library bundles helper logic for Net3000 administrator portals. It coordinates access to account data, mailing list records, and configuration in order to assemble admin dashboards, build navigation menus, and hydrate email recipient lists for campaign reporting.

Public API

<details> <summary>net3000.AdminServices.adminlib</summary>

Member Summary Parameters
Task<List<menu>> adminMenus(string? appCode) Admin Menus. appCode (string?)

</details>

Usage Notes

  • Set the adminlib.myConfig, accountsDB, and account properties before invoking any lookup to ensure the library is scoped to the correct tenant.

License

This library is proprietary to Net3000. Redistribution or use outside Net3000.ca solutions is not permitted.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 99 7/12/2026
1.0.5 110 7/4/2026
1.0.4 115 6/24/2026
1.0.3 111 5/3/2026
1.0.2 153 2/2/2026
1.0.1 123 2/2/2026
1.0.0 123 2/2/2026

1.0.6: ReadContext session self-heal — an expired user_team_token for an account-based user is now revived from the still-valid ASP.NET principal instead of hard-returning a 401 that only a manual sign-out/sign-in could clear (Classy CC-Auth "Unauthorized" reports). The sliding-expiry refresh now fires on every authenticated request (the old 20-minutes-before-expiry window almost never triggered, so 12h tokens simply died). Stale user_team_token cookies are dropped on the remaining fail-closed paths (disabled user, expired client-level token) so browser session restore cannot re-present a dead token. Client-level users (account NULL) still fail closed by design.
1.0.5: Demo-account write-protection helpers (issue #1330). AdminControllerBase now exposes IsDemoAccountContext / IsCurrentUserPlatformStaff / IsDemoWriteBlocked and DemoWriteBlockedResponse() so admin controllers can short-circuit non-staff writes to demo accounts with a clean 403, and ReadContext publishes IsDemoAccount / IsPlatformStaff / DemoWriteBlocked to ViewData for the shared badge/banner partials. Net3000 staff (platformAccountId) pass through with full controls.
1.0.4: Adds shared AdminControllerBase — owns the user_team_token auth flow, CheckTeamPermissions, and lib/adminlib bootstrapping so admin apps (net3000.core, ClassyAdmin) inherit one base controller instead of copy-pasting ReadContext(). Apps override VirtualDirectory / IsAccountAllowed / TryFallbackAuthAsync for app-specific behavior.