shotbow / yii2-oauth2-client
Yii2 AuthClient for The Shotbow Network
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/shotbow/yii2-oauth2-client
Requires
- php: >=5.4
- yiisoft/yii2-authclient: ~2.0
This package is auto-updated.
Last update: 2025-09-12 05:20:11 UTC
README
This project creates an OAuth 2 client for Yii2's AuthClient system. It will be kept up to date with Shotbow's OAuth2 requirements.
Requirements
- PHP 5.4 or greater
- Yii 2
- Composer
How to use
composer require shotbow/yii2-oauth2-client
- Add the following to your Yii2
components
configuration:
'authClientCollection' => [
'class' => yii\authclient\Collection::class,
'clients' => [
'shotbow' => [
'class' => Shotbow\Auth\Client::class,
'clientId' => 'SHOTBOW CLIENT ID',
'clientSecret' => 'SHOTBOW CLIENT SECRET',
'scope' => 'SHOTBOW REQUESTED SCOPES',
],
],
],
- In the controller you wish to add this to, add the AuthAction as described in the Yii2 Guide
That's it! The rest is up to you, the developer!