Move login to /api/auth/session/login for proxymock blueprint demo#168
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
proxymock groups recorded endpoints by URL shape.
/api/auth/login,/api/auth/user, and/api/auth/validateall 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:
AuthControllermaps login to both/loginand/session/login(backward compatible).SecurityConfigpermits/api/auth/session/login.scripts/test.shcalls 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.