This extension adds GitLab OAuth2 supporting for yii2-authclient.
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.
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
],
],
// ...
]