yiiauth/spotify

Spotify OAuth2 for yii2-authclient

dev-master 2018-05-11 14:50 UTC

This package is auto-updated.

Last update: 2024-11-26 05:16:41 UTC


README

This extension adds GitLab OAuth2 supporting for yii2-authclient.

Latest Stable Version Total Downloads Monthly Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require yiiauth/spotify

or add

"yiiauth/spotify": "~0.1"

to the require section of your composer.json.

Usage

You must read the yii2-authclient docs

Register your application in Spotify

and add the Spotify client to your auth clients.

'components' => [
    'authClientCollection' => [
        'class' => \yii\authclient\Collection::class,
        'clients' => [
               'spotify' => [
                   'class' => \yiiauth\spotify\SpotifyClient:class,
                   'clientId' => 'client_id',
                   'clientSecret' => 'client_secret',
               ],
            // other clients
        ],
    ],
    // ...
 ]