Repository navigation
Conversation
Implements #83 - Add `no-auth` Spring profile: permits all HTTP requests without JWT, provides placeholder values for all secrets so Cognito/AWS credentials are not required at startup (`SPRING_PROFILES_ACTIVE=no-auth`) - `NoAuthSecurityConfig`: profile-exclusive security chain that allows every request; mirrors CORS config from production `SecurityConfig` - `SecurityConfig`: restricted to `!no-auth` via `@Profile` - `CognitoConfig`: Cognito properties now have empty-string defaults so startup succeeds when `no-auth` is active and Cognito IDs are absent - `CurrentUser`: when `auth.disabled=true`, injects a stable hardcoded dev-user sub (`00000000-0000-0000-0000-000000000dev`), skips JWT extraction and returns a hardcoded `CognitoUser` ("Dev User", dev@local); dev user is auto-persisted in Neo4j on first request - `AuthConfigDto`: adds `authEnabled` field (default `true`) so the frontend knows whether to show the Cognito login flow - `PublicController`: returns `{"authEnabled": false}` on `/api/public/config` when `auth.disabled=true` - Frontend `AuthConfig` type: adds optional `authEnabled` field - `main.tsx`: skips `Amplify.configure()` when `authEnabled === false` - `useAuth.tsx`: sets synthetic dev user immediately when auth is disabled; exposes `authEnabled` through the auth context - `AuthPage`: redirects to `/app/classes` when `authEnabled === false` - `api-client.ts`: skips `fetchAuthSession()` and 401→/auth redirect when auth is disabled Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 tasks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
nilskntl
deleted the
83-disable-auth-in-local-spring-profile-with-dev-user-fallback
branch
March 21, 2026 00:33
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.
Summary
no-authSpring profile (SPRING_PROFILES_ACTIVE=no-auth) that starts without Cognito/AWS credentials — all secrets get placeholder values, JWT validation is skipped, and every request is permitteddev-user/dev@local) as the authenticated principal; the user is auto-persisted in Neo4j on first request and defaults to the FREE subscription tierGET /api/public/confignow returns{"authEnabled": false}when the no-auth profile is activeauthEnabled: falseat bootstrap, skipsAmplify.configure(), injects a synthetic dev user, and redirects/auth/**straight to/app/classeslocal,test, andprodprofiles — no regressionIssue
Closes #83
Generated with Claude Code