PHP code example of cesnet / simplesamlphp-module-authgoogleoauth2

1. Go to this page and download the library: Download cesnet/simplesamlphp-module-authgoogleoauth2 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cesnet / simplesamlphp-module-authgoogleoauth2 example snippets


  'authgoogleoauth2' => array(
      'authgoogleoauth2:authgoogleoauth2',
      'client_id' => 'yourclientid.apps.googleusercontent.com',
      'client_secret' => 'Your Secret',
      'developer_key' => 'Your API Key',
      # Optional value, default is 'profile' and 'email'
      'scopes' => array(
	'openid',
	'profile',
	'email',
    ),