shotbow/yii2-oauth2-client

Yii2 AuthClient for The Shotbow Network

v1.0.1 2016-04-22 14:32 UTC

This package is auto-updated.

Last update: 2024-12-12 03:28:01 UTC


README

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!