Skip to content

Shotbow/yii2-oauth2-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 AuthClient for The Shotbow Network

This project creates an OAuth 2 client for Yii2's AuthClient system. It will be kept up to date with Shotbow's OAuth2 requirements.

Requirements

  • PHP 5.4 or greater
  • Yii 2
  • Composer

How to use

  • composer require shotbow/yii2-oauth2-client
  • Add the following to your Yii2 components configuration:
    'authClientCollection' => [
        'class' => yii\authclient\Collection::class,
        'clients' => [
            'shotbow' => [
                'class' => Shotbow\Auth\Client::class,
                'clientId' => 'SHOTBOW CLIENT ID',
                'clientSecret' => 'SHOTBOW CLIENT SECRET',
                'scope' => 'SHOTBOW REQUESTED SCOPES',
            ],
        ],
    ],

That's it! The rest is up to you, the developer!