PHP code example of guillaumetissier / auth-server
1. Go to this page and download the library: Download guillaumetissier/auth-server 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/ */
guillaumetissier / auth-server example snippets
bash
php tools/oauth-cli.php authorize-url
bash
php tools/oauth-cli.php token PASTE_THE_CODE_HERE
bash
php tools/oauth-cli.php decode # "sub": "42" is alice's external id
php tools/oauth-cli.php call # 200 OK user=42 client=my-spa scopes=… proof_of_possession=yes
bash
echo 'export AUTH_SERVER_PORT=127.0.0.1:8080' >> ~/.bashrc
source ~/.bashrc