Download the PHP package gupalo/google-auth-bundle without Composer
On this page you can find all versions of the php package gupalo/google-auth-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package google-auth-bundle
Google Auth Bundle
Implementation of common authentication logic
Installation
Get Google App id and secret at https://console.developers.google.com/apis/credentials
Add env vars:
GOOGLE_AUTH_APP_ID
: from Google ConsoleGOOGLE_AUTH_APP_SECRET
: from Google ConsoleGOOGLE_AUTH_DOMAIN
: which domain is allowed to login; 'user.dev' to skip google auth and login all as ROLE_USER; "*" if all domains (only GSuite); overridegoogle_auth_domain: null
if you need to allow really all domains including "gmail.com"GOOGLE_AUTH_USERS
: which users should be autoactivated; empty if no usersGOOGLE_AUTH_ADMINS
: which users should be autoactivated as admins; empty if noneGOOGLE_AUTH_DEFAULT_APIKEY
: set if you want to autocreate "[email protected]" user with this key
And create config/packages/google_auth.yaml
Install
2) Check that GoogleAuthBundle and KnpUOAuth2ClientBundle are in config/bundles.php
3) Set config/packages/security.yaml
4) Enable GoogleAuthBundle routing. Add to config/routes/google_auth.yaml
5) Create config/packages/google_auth.yaml
6) Update your database schema
Dev
Set to GOOGLE_AUTH_DOMAIN to one of the values below for dev environment
- user.dev - to login as [User::ROLE_USER]
- manager.dev - [User::ROLE_MANAGER]
- admin.dev - [User::ROLE_ADMIN]
- user-admin.dev - [User::ROLE_USER, User::ROLE_ADMIN]
All versions of google-auth-bundle with dependencies
ext-json Version *
doctrine/doctrine-bundle Version ^2.5
doctrine/orm Version ^2.11|^3.0
gupalo/browser-notifier Version ^1.2
gupalo/uidgenerator Version ^1.1
knpuniversity/oauth2-client-bundle Version ^2.9
league/oauth2-google Version ^4.0
symfony/form Version ^5.4|^6.0
symfony/security-core Version ^5.4|^6.0
symfony/translation Version ^5.4|^6.0
symfony/yaml Version ^5.4|^6.0
twig/twig Version ^3.3