Skip to content

Grandpere/fuelapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

416 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuelapp (Symfony + FrankenPHP)

Notes FrankenPHP worker (Symfony 8)

  • Symfony 8 uses the standard Symfony Runtime. You do not need runtime/frankenphp-symfony, which is not compatible with Symfony 8.
  • The worker mode is enabled by FRANKENPHP_CONFIG="worker ./public/index.php" in the container.
  • Do not set APP_RUNTIME=Runtime\\FrankenPhpSymfony\\Runtime for Symfony 8.

Dev stack

  • App: http://localhost:${APP_PORT:-8081}
  • RabbitMQ UI: http://localhost:${RABBITMQ_MANAGEMENT_PORT:-15673}
  • Mercure: http://localhost:${MERCURE_PORT:-3001}

Run

docker compose -f resources/docker/compose.yml --env-file resources/docker/.env up -d --build

Docker env

The Compose env file lives at resources/docker/.env (example at resources/docker/.env.example).

Local auth

  • Create a local user:
make user-create EMAIL=you@example.com PASSWORD='StrongPassword'
  • (Optional) claim historical receipts created before ownership was enforced:
make receipts-claim-unowned EMAIL=you@example.com
  • UI login page: http://localhost:${APP_PORT:-8081}/ui/login

API auth (JWT)

  • Get token:
curl -s -X POST "http://localhost:${APP_PORT:-8081}/api/login" \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","password":"StrongPassword"}'
  • Use token:
curl -s "http://localhost:${APP_PORT:-8081}/api/receipts" \
  -H "Authorization: Bearer <token>"

OIDC SSO (generic layer)

  • OIDC login endpoints:
  • /ui/login/oidc/{provider}
  • /ui/login/oidc/{provider}/callback
  • Supported provider keys (config-first): auth0, google, microsoft.
  • Enable/configure providers via env vars:
  • OIDC_AUTH0_ENABLED, OIDC_AUTH0_ISSUER, OIDC_AUTH0_CLIENT_ID, OIDC_AUTH0_CLIENT_SECRET
  • OIDC_GOOGLE_ENABLED, OIDC_GOOGLE_*
  • OIDC_MICROSOFT_ENABLED, OIDC_MICROSOFT_*
  • On first successful OIDC login:
  • user is linked by (provider, sub) identity.
  • if no identity exists, user is matched by email then linked; otherwise a new local user is created.

Security runbook

  • Auth/ops documentation and local/dev/prod checklist:
  • docs/security/auth-and-ops.md
  • OIDC provider catalog, claims mapping conventions, onboarding:
  • docs/security/oidc-provider-catalog.md

Prod (future)

This project currently targets a dev-first Docker setup. A dedicated prod profile can be added later if needed.

About

fuel tracker and car maintenance board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors