glue-agency / m2-glue-auth
Backend Google Sign On for Magento 2
Package info
bitbucket.org/glue-team/m2-glue-auth
Type:magento2-module
pkg:composer/glue-agency/m2-glue-auth
Requires
- php: >=7.4.0
- google/apiclient: ^2.6
- magento/magento2-base: ^2.3
- magento/module-backend: *
- magento/module-user: *
README
Signs administrators in to the Magento 2 Admin Panel with their Glue Google account.
Installation
composer require glue-agency/m2-glue-auth
php bin/magento module:enable GlueAgency_BackendGoogleSignOn
php bin/magento setup:upgrade
Configuration
Go to STORES > Settings > Configuration > SECURITY > Glue Backend Sign On.
| Setting | |
|---|---|
| Enable | Off by default. |
| Proxy URL | Where sign-on runs. Already filled in. |
| Google client ID | Already filled in. |
| Hosted domain | Which Google accounts may sign in. Already filled in. |
| Domain based rules | Maps an email domain to the admin role a new user is created in, e.g. glue.be => Administrators. |
Only Enable and the domain rules normally need touching.
Before enabling, this install has to be registered with the sign-on service. The value to hand over is shown under the Enable setting; ask a maintainer to add it.
Usage
The login form gains a GLUE Login button. An admin user is created on first sign-in when a domain rule names a role, and signed in.
A user whose email domain has a rule signs in this way rather than with a password. Accounts created by sign-on have no usable password, so giving one out means an administrator setting it.