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
fix: remove dead code and document passwordless endpoint requirements
Simplify unreachable ternary in registerNewUserAccount — the null guard
already throws before line 275, so the null branch can never execute.
Add JavaDoc note that /user/registration/passwordless must be in
unprotectedURIs for deny-by-default apps. Add local testing workflow
with demo app to CLAUDE.md including playwright-test profile requirement.
Copy file name to clipboardExpand all lines: CLAUDE.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,40 @@ Spring User Framework is a reusable Spring Boot library (not an application) tha
34
34
./gradlew publishLocal
35
35
```
36
36
37
+
## Local Testing with Demo App
38
+
39
+
The [SpringUserFrameworkDemoApp](https://github.com/devondragon/SpringUserFrameworkDemoApp) is a Spring Boot app that consumes this library for testing and demonstration. It is typically checked out alongside this repo at `../SpringUserFrameworkDemoApp`.
40
+
41
+
### Workflow
42
+
43
+
1.**Publish the library locally:**
44
+
```bash
45
+
./gradlew publishLocal
46
+
```
47
+
This publishes the current SNAPSHOT version (from `gradle.properties`) to your local Maven repository.
48
+
49
+
2.**Update the demo app dependency** (if needed):
50
+
In `../SpringUserFrameworkDemoApp/build.gradle`, ensure the dependency version matches the SNAPSHOT:
The app runs on `http://localhost:8080` by default. The `playwright-test` profile activates `TestDataController` and `TestApiSecurityConfig`, which the Playwright tests require for test data setup/teardown. Omit `playwright-test` if only doing manual browser testing.
62
+
63
+
4.**Run Playwright tests:**
64
+
```bash
65
+
cd ../SpringUserFrameworkDemoApp/playwright
66
+
npx playwright test --project=chromium
67
+
```
68
+
69
+
5.**Manual browser testing** can be done with Playwright MCP tools or directly in Chrome at `http://localhost:8080`.
0 commit comments