tide_asgard_scaffold
SCAFFOLD AN ASP.NET CORE (.NET) BACKEND + BROWSER FRONTEND SECURED WITH TIDECLOAK VIA ASGARD. Returns FINISHED files to WRITE — a realm script that creates the public frontend client, the tide-mtls backend client and the AUDIENCE MAPPER (backend in the frontend's access-token aud) and exports both adapter configs; the ASP.NET Program.cs/csproj (asgard 4f41371: AddAsgard + RequireTokenBinding(Binding.DPoP) — EdDSA validation, mandatory DPoP binding, mTLS enrollment with identity paths under Asgard:, UseExceptionHandler, the pack's known-good DPoP relay page instead of Asgard's UseTide_over_DPoP, server-side role checks); and a vanilla or React frontend that calls the API through IAMService.fetch. Features: 'delegation' = the backend acts on the user's behalf (user-approved resource delegation + DPoP token exchange, calls TideCloak over mTLS as the user); 'lock' = the backend locks (encrypts) user data under a Forseti policy and unlocks it for authorized callers, with an admin-only policy deployment endpoint. Modelled on the asgard examples StandardResourceDelegation and LockingUserDataWithTide. CALL THIS when the user wants a C#/.NET/ASP.NET backend with Tide, a backend that acts for the user / calls another service on their behalf, or server-side encryption of user data. Ask which features and frontend first; state the availability caveats it returns.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tide_asgard_scaffold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | No | Realm name. Default: app slug. | |
| appName | No | App name, e.g. 'Payroll Portal'. Drives project and client names. | |
| features | No | ASK THE USER. 'delegation' = backend acts for the user; 'lock' = backend encrypts user data under a policy. Default both. | |
| frontend | No | Frontend flavour. Default vanilla. | |
| userRole | No | Realm role allowed to lock data. Default '<slug>-user'. | |
| adminRole | No | Realm role allowed to deploy the lock policy. Default '<slug>-admin'. | |
| appOrigin | No | Origin the ASP.NET server (and page) is served on. Default http://localhost:3000. | |
| asgardRoot | No | Path to an asgard checkout (branch main, >= a77fd5a; main-asgard-merge merged into main on 2026-11-09). Default $(HOME)/asgard. | |
| lockContract | No | Built-in ORK contract for 'lock'. 'tag-roles' = SimpleTagBasedDecryption:1 (ORK main; caller needs realm role _tide_<tag>.encrypt to lock, _tide_<tag>.decrypt to unlock). 'relationship' = RelationshipAttestation:1 (ORK main since c69fc4f6, 2026-10-16; caller needs the policy's subject role AND _tide_encryptor to lock, _tide_decryptor to unlock). Default tag-roles. | |
| tidecloakUrl | No | TideCloak base URL. Default http://localhost:8080. | |
| backendClient | No | Confidential tide-mtls client id. Default '<slug>-api'. | |
| frontendClient | No | Public browser client id. Default '<slug>-web'. | |
| tidecloakJsPath | No | Path to tidecloak-js/packages/tidecloak-js on branch main-asgard-merge (>= fd6c41f), built (published @tidecloak/js lacks delegation). Default ~/tidecloak-js/packages/tidecloak-js. |