Download the PHP package sifuen/module-backend-google-sso without Composer

On this page you can find all versions of the php package sifuen/module-backend-google-sso. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-backend-google-sso

Backend Google SSO

This Magento 2 module allows you to sign in to your backend user account using your Google account. You can also have backend accounts created automatically when someone logs in with their Google account.

https://sifuen.com/magento-2/using-google-account-sign-in-magento-backend/

Requirements

This module requires the following:

Installation

This module can be installed using Composer.

After the module is downloaded, run the following command in your Magento root:

Set up

Command Line

Setting up your OAuth credentials

Visit the Google Developer Console to create your OAuth credentials.

  1. Visit the "Credentials" section
  2. Click "Create credentials"
  3. Choose "OAuth Client ID"
  4. Choose the "Web application" application type.
  5. When asked for "Authorized Redirect URIs", enter the URL given below, substituting https://example.com/admin/ with your Magento 2 administrator page.

Redirect URI: https://example.com/admin/google_sso/auth/callback

Configuring the module

1

After you set up your OAuth 2 credentials, login to your Magento backend and navigate to Stores > Configuration > Advanced > Admin > Google SSO.

  1. Change the module's status to "Enabled".
  2. Enter the Client ID you created in the Google Developer Console.
  3. Enter the Client Secret you created in the Google Developer Console.
  4. Click Save

After your configuration saves, clear your store's cache if necessary. The next time you visit the Magento 2 backend login page, you should see a button to Sign in with Google.

Auto Registration

You can enable "Auto Registration" which allows users with access to certain Google accounts to automatically have admin accounts created for them. This is especially useful for agencies who have multiple employees logging into a client's admin.

You have the following available filter options:

Disabling password authentication

You can disable the ability for a user to login to their admin account using a password automatically if they are registered using Google SSO by toggling the setting "Allow Auto-Registered Users To Use Password Login". This is especially useful if you are in an work environment where when an employee loses their work e-mail, they should no longer be allowed to access client admin accounts.

This can also be toggled on a per-user basis, even if the user was not originally created using the auto-register feature.

2

Concerns

I want to know when my employees are logging in or auto-registering

All login actions using Google SSO are logged to the table google_sso_action_log in the database. The following actions are logged:

I don't want my employees to be able to access their admin accounts when they leave the company

You can disable the ability for an admin user to use password authentication, which forces them to use Google SSO to sign in. Once an employee's work e-mail is revoked, they will no longer be able to access their admin account. If the employee even attempts to sign into their account using password authentication, that action is logged in the google_sso_action_log table

Contributing

Please refer to CONTRIBUTING.md


All versions of module-backend-google-sso with dependencies

PHP Build Version
Package Version
Requires php Version 5.5.*|5.6.*|7.0.*|7.1.*|7.2.*|7.3.*|7.4.*
league/oauth2-google Version ^2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sifuen/module-backend-google-sso contains the following files

Loading the files please wait ....