Local dev auth bypass for docker-compose #33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Follow-up from spike #16 (
docs/auth.md— Local Development section). Ships alongside #32 (users + OmniAuth).Repo
ldraney/palinksUser Story
As a developer
I want to skip Keycloak in local dev
So that I can work without running a Keycloak instance
Context
Local docker-compose dev doesn't have Keycloak. A conditional middleware or initializer check should auto-set a superadmin session in development mode so the full app works locally without auth infrastructure.
File Targets
config/initializers/omniauth.rb— skip OmniAuth setup in developmentapp/controllers/application_controller.rb— mock current_user in developmentconfig/initializers/dev_auth.rb— dedicated dev auth bypassFeature Flag
None — development-only behavior, not deployed to production.
Acceptance Criteria
current_userreturns a mock or real User recordTest Expectations
bundle exec rails testConstraints
Rails.env.development?onlyChecklist
Related
project-palinks— project pagedocs/auth.md— Local Development section