PHP code example of rowasc / yii2oauthserver
1. Go to this page and download the library: Download rowasc/yii2oauthserver 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/ */
rowasc / yii2oauthserver example snippets
'ResourceServerComponent'=> [
'class' => 'rowasc\yii2oauthserver\components\ResourceServerComponent'
],
'AuthServerComponent'=> [
'class' => 'rowasc\yii2oauthserver\components\AuthServerComponent'
],
'yii2oauthserver' => [
'class' => '@vendor\rowasc\yii2oauthserver\Module',
]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1