2017 © Pedro Peláez
 

library yii2-wrx-oauth2-client

Yii2 OAuth Client For wangrunxin.com.

image

wangrunxinyes/yii2-wrx-oauth2-client

Yii2 OAuth Client For wangrunxin.com.

  • Wednesday, December 27, 2017
  • by wangrunxinyes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WRX OAuth Client 3.3 For WANGRUNXIN.COM

A wrapper for implementing an OAuth2 Server(https://www.wangrunxin.com), (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist wangrunxinyes/yii2-wrx-oauth2-client "*"

or add, (*4)

"wangrunxinyes/yii2-wrx-oauth2-client": "*"

to the require section of your composer.json., (*5)

To use this extension, simply add the following code in your application configuration as a new module:, (*6)

'modules'=>[
        //other modules .....
        'wrx'  => [
            'class' => 'wangrunxinyes\OAuth\Module',
            'controllerMap' => [
               //Overwrite OauthController and handle AuthSccuess for your own project;
               //Your OauthController should extend wangrunxinyes\OAuth\controllers\OauthController.
               'oauth' => 'Your own OauthController className',
            ],
            'mixKey' => 'Your random code',
        ],
],
'components' => [ 
        //other components .....
        'authClientCollection' => [
            'class' => yii\authclient\Collection::class,
                'clients' => [
                    'wrxauth' => [
                         'class' => wangrunxinyes\OAuth\models\Client::class,
                         'clientId' => 'Your client_id',
                         'clientSecret' => 'Your client_secret',
                         'scope' => '',
                    ],
                ],
            ],
        ],
],

The next step your shold run migration, (*7)

yii migrate --migrationPath=@vendor/wangrunxinyes/yii2-wrx-oauth2-client/migrations

For more, see https://www.wangrunxin.com/oauth.js, (*8)

The Versions

27/12 2017

dev-master

9999999-dev

Yii2 OAuth Client For wangrunxin.com.

  Sources   Download

MIT

The Requires

 

by WANG Runxin