Download the PHP package dmlab/module-admin-sso-google without Composer
On this page you can find all versions of the php package dmlab/module-admin-sso-google. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmlab/module-admin-sso-google
More information about dmlab/module-admin-sso-google
Files in dmlab/module-admin-sso-google
Package module-admin-sso-google
Short Description Google Workspace provider plugin for Magento 2 admin SSO — supplies the Google OIDC preset (fixed discovery URL, scopes, hosted-domain restriction, branding) for the provider-agnostic admin-sso capability. Installs admin-sso (and sso-core) automatically.
License OSL-3.0
Informations about the package module-admin-sso-google
DmLab_AdminSsoGoogle
Google Workspace login for the Magento 2 admin panel.
A thin Google provider plugin for the provider-agnostic admin-sso capability. It supplies the Google OIDC preset — a fixed discovery URL, default scopes, optional hosted-domain restriction, login-button branding — while all OIDC protocol lives in sso-core and all admin logic in admin-sso. Installing it pulls admin-sso and sso-core automatically.
Installation
Create the Google OAuth 2.0 client
In the Google Cloud Console → APIs & Services → Credentials:
- Create credentials → OAuth client ID, application type Web application.
- Authorized redirect URI — the
admin-ssocallback:https://<admin-host>/<admin-path>/adminsso/sso/callback(<admin-path>is the backend frontName, defaultadmin). It must match the admin URL used at runtime exactly. - Create, then copy the Client ID and Client secret.
No discovery/tenant configuration is needed — Google exposes a single, tenant-independent
OIDC discovery document (https://accounts.google.com/.well-known/openid-configuration).
Configuration
Admin → Stores → Configuration → DMLab → Admin SSO.
General (dmlab_admin_sso/general/*):
| Field | Value |
|---|---|
| Enable Admin SSO | Yes |
| Identity Provider | Google Workspace |
| Client ID | from the Google OAuth client |
| Client Secret | from the Google OAuth client |
Google Workspace (dmlab_admin_sso/google/*, shown when Google is selected):
| Field | Value |
|---|---|
| Allowed Workspace Domain | optional; restrict sign-in to one Workspace domain, e.g. example.com |
When Allowed Workspace Domain is set, sign-in is enforced against Google's hd
(hosted-domain) claim: accounts outside the domain — including personal Google accounts,
which carry no hd — are rejected on callback. Leave it empty to allow any Google account.
Enforce-SSO/break-glass are configured in admin-sso; see that module's README.
No groups in the Google token — role mapping limitation
Google Workspace does not include group membership in the OIDC ID token. There is no
groups claim over standard OIDC, so admin-sso's group → ACL-role mapping cannot resolve
from a Google login: a provisioned admin falls back to the default role configured in
admin-sso. The practical Google control is who may sign in (the Allowed Workspace Domain
above), not what role they get.
Fetching group memberships would require the Google Admin SDK Directory API (a service account with domain-wide delegation) — out of scope for v1.
Requirements
- Magento 2.4.x
- PHP 8.3 – 8.5
Part of the DMLab identity suite
| Repo | Role |
|---|---|
sso-core |
Shared OIDC engine (installed automatically) |
admin-sso · admin-sso-<idp> |
Admin-panel SSO login |
customer-sso · customer-sso-<idp> |
Storefront SSO login |
admin-scim · admin-scim-<idp> |
Admin-user provisioning (SCIM 2.0) |
License
https://dmlab.work.
All versions of module-admin-sso-google with dependencies
magento/framework Version >=103.0
dmlab/module-admin-sso Version ^0.1.1