PHP code example of notakey / simplesamlphp-module-oauth2

1. Go to this page and download the library: Download notakey/simplesamlphp-module-oauth2 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/ */

    

notakey / simplesamlphp-module-oauth2 example snippets


cp modules/oauth2/config-template/module_oauth2.php config/

curl --request GET \
  --url http://server.com/simplesaml/module.php/oauth2/userinfo.php \
  --header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1Ni...'