Skip to content

helpfulrobot/xpointo-silverstripe-google-authenticator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SilverStripe Google Authenticator

Introduction

This module enables Google authentication on SilverStripe.

It works by matching the email address obtained from Google login with the email address in the SilverStripe user account list, and logs in the user if there is a match.

Requirements

Installation

via composer

composer require "xpointo/silverstripe-google-authenticator:dev-master"

Configuration

  1. Obtain the Google OAuth Client ID & Client Secret by following the instructions in the Google API Documentation
  2. For the redirect uris setting in the Google OAuth configuration, please include the URL:
  • http://[yoursitename]/GoogleAuthenticatorController/callback
  1. Define the Google OAuth Client ID & Client Secret in your _ss_environment.php or mysite/config.php file.
define('GOOGLE_AUTHENTICATOR_CLIENT_ID', '[google-oauth-client-id]');
define('GOOGLE_AUTHENTICATOR_CLIENT_SECRET', '[google-oauth-client-secret]');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%