rocket-firm / yii2-rocketauth-authclient
RocketAuth extension for using via yii2-authclient
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2-authclient: ^2.1
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is auto-updated.
Last update: 2024-11-10 21:06:53 UTC
README
This extension adds RocketAuth OAuth2 supporting for yii2-authclient.
Installation
The preferred way to install this extension is through composer.
Either run
composer require rocket-firm/yii2-rocketauth-authclient
or add
"rocket-firm/yii2-rocketauth-authclient": "^0.1"
to the require
section of your composer.json.
Usage
You must read the yii2-authclient docs
Register your application in RocketAuth
and add the RocketAuth client to your auth clients.
'components' => [
'authClientCollection' => [
'class' => 'yii\authclient\Collection',
'clients' => [
'rocketauth' => [
'class' => 'rocketfirm\authclient\RocketAuth',
'clientId' => 'rocketauth_client_id',
'clientSecret' => 'rocketauth_client_secret',
],
// other clients
],
],
// ...
]