Skip to content

Move login to /api/auth/session/login for proxymock blueprint demo#168

Merged
kenahrens merged 3 commits into
masterfrom
feat/blueprint-demo-login-path
Jun 11, 2026
Merged

Move login to /api/auth/session/login for proxymock blueprint demo#168
kenahrens merged 3 commits into
masterfrom
feat/blueprint-demo-login-path

Conversation

@kenahrens

Copy link
Copy Markdown
Member

Problem

proxymock groups recorded endpoints by URL shape. /api/auth/login, /api/auth/user, and /api/auth/validate all collapsed into one /api/auth/(.*) group, which broke the blueprint token-rotation demo (the login response couldn't be targeted separately to extract a fresh token).

Solution

Move login to a deeper path so proxymock groups it on its own:

  • AuthController maps login to both /login and /session/login (backward compatible).
  • SecurityConfig permits /api/auth/session/login.
  • scripts/test.sh calls the new path.

Also removes the stale standalone JWT-generator scripts (generate-jwt.sh, JwtGenerator.java, pom.xml, release.sh, README.md) that are unrelated to the demo, and gitignores proxymock recording/replay artifacts.

kenahrens and others added 3 commits June 11, 2026 17:33
proxymock groups endpoints by URL shape, so /api/auth/login collapsed
together with /api/auth/user and /api/auth/validate, breaking the
blueprint token-rotation demo. Map login to both /login and
/session/login so the deeper path groups separately; permit it in
SecurityConfig; point test.sh at the new path.

Also remove the stale standalone JWT-generator scripts (generate-jwt.sh,
JwtGenerator.java, pom.xml, release.sh, README) and gitignore proxymock
recording/replay artifacts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
validate takes the token in the request body (not the Authorization
header) and returns 200 regardless of validity, so it can't demonstrate
token rotation: status-code match is a false green and its time-embedded
body (valid, expiresAt) can never match on replay. Leave login + 3x user,
the clean bearer-rotation case.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The standalone JWT-generator scripts/pom.xml was removed in this branch,
so 'mvn dependency:resolve java-auth/scripts' fails with no POM. Drop it
from the dependency-security Maven cache loop.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kenahrens kenahrens merged commit 9f25370 into master Jun 11, 2026
29 checks passed
@kenahrens kenahrens deleted the feat/blueprint-demo-login-path branch June 11, 2026 22:14
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.

1 participant