yiiauth/spotify

Spotify OAuth2 for yii2-authclient


Keywords
oauth, spotify, yii2, authclient, oauth2-client, spotify-oauth2, yii2-authclient, yii2-extension
License
BSD-1-Clause

Documentation

yiiauth/spotify

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
        ],
    ],
    // ...
 ]