yeesoft / yii2-yee-auth
Authorization Module For Yee CMS
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 6 853
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 7
Open Issues: 5
Requires
- yeesoft/yii2-yee-core: ~0.1.0
- yeesoft/yii2-yee-user: ~0.1.0
- yiisoft/yii2-authclient: ~2.1.0
This package is auto-updated.
Last update: 2022-03-29 00:25:19 UTC
README
##Yee CMS - Auth Module
####Frontend authorization module
This module is part of Yee CMS (based on Yii2 Framework).
This module implements user registration, authorization, social authorization, password recovery and so on.
Installation
Either run
composer require --prefer-dist yeesoft/yii2-yee-auth "~0.1.0"
or add
"yeesoft/yii2-yee-auth": "~0.1.0"
to the require section of your composer.json
file.
Run migrations
yii migrate --migrationPath=@vendor/yeesoft/yii2-yee-auth/migrations/
Configuration
- In your frontend config file
'modules'=>[ 'auth' => [ 'class' => 'yeesoft\auth\AuthModule', ], ], 'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'google' => [ 'class' => 'yii\authclient\clients\Google', 'clientId' => '*****', 'clientSecret' => '*****', ], 'facebook' => [ 'class' => 'yii\authclient\clients\Facebook', 'clientId' => '*****', 'clientSecret' => '*****', ], 'twitter' => [ 'class' => 'yii\authclient\clients\Twitter', 'consumerKey' => '*****', 'consumerSecret' => '*****', ], ], ], ],