You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 44e9cda
Browse filesBrowse the repository at this point in the historyBrowse files
* test: add OIDC social-login setPassword step-up fallback E2E (#90)
Follow-up to #75. Adds the browser E2E that proves an OIDC (Keycloak)
account with no passkey has POST /user/setPassword governed by
allowInitialPasswordSetWithoutStepUp (403 when false, succeeds when true)
rather than a permanent 401 step-up, and that a freshly logged-in OIDC
user can enroll a first passkey (FACTOR_AUTHORIZATION_CODE).
- New chromium-step-up-oidc Playwright project (grep @step-up-oidc),
excluded from the default/step-up projects.
- globalSetup/globalTeardown start a dev-mode Keycloak container (realm
mounted, no external DB) when KEYCLOAK_E2E is set; reuse an already
running provider, and fail fast rather than destroy a live one.
- step-up-oidc.spec.ts: real Keycloak redirect login, both fallback
branches (selected per app boot via STEP_UP_OIDC_ALLOW_INITIAL and a
SPRING_APPLICATION_JSON override), and first-passkey enrollment.
- New playwright-tests-oidc CI job mirroring playwright-tests, with a
Keycloak provider (via globalSetup) and a Mailpit service so the
passkey-registration notification stays local instead of hitting SES.
- Docs: TESTING.md and AUTHENTICATION.md describe the new project, run
commands, and the local-DB reset caveat.
Claude-Session: https://claude.ai/code/session_01EJY7pA4NvY9vJt6CfDBVWt
* ci: run OIDC step-up E2E job only on main pushes (#90)
The playwright-tests-oidc job is heavier than the others (two app boots
plus a Keycloak container), so gate it to pushes on main rather than
running it on every pull request.
Claude-Session: https://claude.ai/code/session_01EJY7pA4NvY9vJt6CfDBVWt
* test: extract shared WebAuthn E2E helpers and harden Keycloak startup
Addresses the two low-severity review findings on PR #93 (#90).
- Extract setupVirtualAuthenticator, addVirtualAuthenticator, and
getCredentialIds into playwright/src/utils/webauthn.ts and export
them from utils/index.ts. The step-up-oidc, step-up-flow, and
mfa-flow specs now import these instead of each carrying a local
copy (mfa-flow previously inlined the authenticator setup).
- startKeycloak now removes the container it started if waitForMetadata
times out. Playwright's separate globalTeardown is not guaranteed to
run when globalSetup throws, so a readiness timeout could otherwise
leave the container and ownership marker behind, which the next run's
"already running but not answering" guard would reject until a manual
docker rm -f.
Claude-Session: https://claude.ai/code/session_01EJY7pA4NvY9vJt6CfDBVWt
0 commit comments