2017 © Pedro Peláez
 

library yii2-authclient-oauth2

OAuth2 client for yii2-oauth2-server

image

macfly/yii2-authclient-oauth2

OAuth2 client for yii2-oauth2-server

  • Tuesday, February 28, 2017
  • by Macfly
  • Repository
  • 1 Watchers
  • 2 Stars
  • 830 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

yii2-authclient-oauth2

Yii2 authclient for Oauth 2.0 Server Php work well with macfly/yii2-oauth2-server, (*1)

Installation

Through Composer From console:, (*2)

composer require macfly/yii2-authclient-oauth2

or add to "require" section to composer.json, (*3)

"macfly/yii2-authclient-oauth2": "*"

Usage

Set up your Oauth2 server, you can see (https://github.com/Marty-Macfly/yii2-oauth2-server) And add the Oauth2 client to your auth clients., (*4)

php
'components' => [
    'authClientCollection' => [
      'class'   => \yii\authclient\Collection::className(),
      'clients' => [
        'oauth2-server-php' => [
          'class'             => 'macfly\authclient\OAuth2',
          'authUrl'         => 'http://193.168.5.1:8889/oauth2/authorize',
          'tokenUrl'        => 'http://193.168.5.1:8889/oauth2/token',
          'apiBaseUrl'      => 'http://193.168.5.1:8889/oauth2',
#         'returnUrl'       => 'http://127.0.0.1:8888/user/security/auth?authclient=oauth2',
          'clientId'        => 'testclient',
          'clientSecret'    => 'testpass',
        ],
        // other clients
      ],
    ],
    // ...
 ]

The Versions

28/02 2017

dev-master

9999999-dev https://github.com/Marty-Macfly/yii2-authclient-oauth2

OAuth2 client for yii2-oauth2-server

  Sources   Download

BSD-3-Clause

The Requires

 

by Charles DELFLY

yii2 oauth2 authclient oauth2-server-php

28/02 2017

0.0.1

0.0.1.0 https://github.com/Marty-Macfly/yii2-authclient-oauth2

OAuth2 client for yii2-oauth2-server

  Sources   Download

BSD-3-Clause

The Requires

 

by Charles DELFLY

yii2 oauth2 authclient oauth2-server-php