Project showcasing a flexible authentication system with Email/Password, Google and Facebook login options.
- Docker
- Docker Compose
- (Windows) WSL2
- Google Cloud Console Account
- Facebook Developer Account
git clone https://github.com/LuigiG34/MultiAuthDemo
cd MultiAuthDemo
docker compose up -d --build
docker compose exec php composer install
docker compose exec app php bin/console doctrine:database:create
docker compose exec app php bin/console make:migration
docker compose exec app php bin/console doctrine:migrations:migrate
Create a new web Client to retrieve the CLIENT_ID, APP_SECRET & AUTH_CONFIG https://console.cloud.google.com/
Add to .env
GOOGLE_CLIENT_ID=yourclientid
GOOGLE_CLIENT_SECRET=yourclientsecret
GOOGLE_AUTH_CONFIG=C:/path/to/apps.googleusercontent.com.json
Create a test user in you Google cloud console (in https://console.cloud.google.com/auth/audience?project=...)
Create a new web app to retrieve the CLIENT_ID & APP_SECRET go to https://developers.facebook.com/
Add to .env
FACEBOOK_APP_ID=your_facebook_app_id
FACEBOOK_APP_SECRET=your_facebook_app_secret
Go to localhost:8000/login or localhost:8000/register
docker compose exec app php bin/console doctrine:database:create --env=test
docker compose exec app vendor/bin/phpunit --testdox