Add coreapp signin: test an app's sign-in on the Core, as a browser would
The Vikunja rehearsal's agent could only test sign-in against a stand-in Authelia. coreapp signin follows the app's sign-in through the Core's real Authelia as a test person (coreapp.test, made by coreapps test-account with a new random password each run, kept nowhere), prints each step with Authelia's errors, and says whether it got back to the app signed in. --code covers apps that start sign-in in the browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -361,10 +361,26 @@ Steps:
|
||||
checks PKCE, and says not to build bridges; `coreapp shell` explains a
|
||||
missing `sh`; `coreapp status` hides the empty address before install;
|
||||
the example apps' README no longer mentions `www/`
|
||||
- [ ] David: sign in to `https://vikunja.dev.fedcom.net/` with a Core
|
||||
account (the agent tested the flow only against a stand-in Authelia)
|
||||
- [ ] A "test locally" recipe in the skill: running the image with
|
||||
made-up Core settings, for sign-in code
|
||||
- Done 2026-12-03: David signed in to `https://vikunja.dev.fedcom.net/`
|
||||
with his Core account in a browser; it all works
|
||||
- Instead of a "test locally" recipe (the agent ran the image off the
|
||||
Core with a stand-in Authelia, the only way it could test sign-in):
|
||||
`coreapp signin` (2026-12-03, David chose it) signs in on the real
|
||||
Core, as a browser would (`lib/signin.py`: redirects with a cookie
|
||||
jar, Authelia 4.39's `/api/firstfactor` with its `flow_id`), as a
|
||||
test person `uid=coreapp.test,ou=people` (`inetOrgPerson`, so
|
||||
Superpanel's user list shows it; uid with a dot, so never an app's
|
||||
`coreapp-<name>` mail account), made by `coreapps test-account` with
|
||||
a new random password on stdin each run, kept nowhere. The Core's
|
||||
Authelia is `one_factor` with implicit consent, so no second factor
|
||||
or consent step. `--code` is for apps that start sign-in in the
|
||||
browser: it starts at Authelia with the app's client and prints the
|
||||
callback with the code. Tested on dev.fedcom.net: sso-demo signed
|
||||
in, its page shows coreapp.test; stock Vikunja signed in through its
|
||||
own API with a `--code` code (a token, user `coreapp.test@<domain>`);
|
||||
a wrong callback shows Authelia's hint
|
||||
- [ ] Hide the test account from Superpanel's users (HIDDEN_USERS, as
|
||||
`fcore`), if it bothers anyone; it only exists on dev Cores
|
||||
- [ ] Test it with David's candidate app: an agent in that repository
|
||||
uses the skill; what it struggles with becomes fixes
|
||||
6. [ ] The Coreapps screen in Superpanel (Federated's code: needs their
|
||||
|
||||
Reference in New Issue
Block a user