Skip to main content

5.2.1 Sign-in

The login server action calls DemoAuthService.signIn. The default validator accepts only the username admin with the password admin. These credentials are a development-only demo account and must not be used for production access. The middleware protects /launcher and /demo/:path* by comparing the cookie to the constant value.
The cookie value is a fixed string, not a secret. Any client that sets kcode-demo-session=demo-admin is treated as signed in. Do not expose this application to untrusted users.

5.2.3 Permissions

Plugins declare requiredPermissions on routes and commands, but the demo runtime does not enforce them.

5.2.4 Credential handling