Skip to content

yiiauth/spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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