Skip to content

Log dev mockservices logins in as the seeded admin account - #13365

Open
RayBB wants to merge 1 commit into
masterfrom
fix/dev-mock-admin-login
Open

Log dev mockservices logins in as the seeded admin account#13365
RayBB wants to merge 1 commit into
masterfrom
fix/dev-mock-admin-login

Conversation

@RayBB

@RayBB RayBB commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

The dev IA xauthn mock hardcoded its identity as testuser — a phantom account with no permissions — so every "Log in with Internet Archive" in local dev landed on /people/testuser, and hidden features (e.g. the /status testing panel) stayed invisible even for maintainers.

Point the mock's screenname/email at the seeded openlibrary account (/usergroup/admin + maintainers), so all dev xauthn logins resolve to an admin session. Updated the e2e test to assert the admin screenname.

Verification

  • Web-form login with any credentials → session /people/openlibrary → testing panel renders
  • 21/21 mockservices e2e tests pass

The dev IA xauthn mock hardcoded its identity as testuser, a phantom
account with no permissions, so every dev login landed on
/people/testuser and maintainer-only surfaces (e.g. the /status testing
panel) stayed hidden. Point the mock's screenname/email at the seeded
openlibrary account (admin + maintainers) so all dev xauthn logins
resolve to an admin session, and assert the admin screenname in the e2e
tests.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants