vip9008/yii2-googleuser

Enables signing in using a google account.

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.0 2016-11-09 13:54 UTC

This package is auto-updated.

Last update: 2024-04-15 21:22:36 UTC


README

Enables signing in using a google account.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist vip9008/yii2-googleuser "*"

or add

"vip9008/yii2-googleuser": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply create web api credentials at developers console and add your sign-in link to Authorized redirect URIs [link_to_your_yii2_app]user/sign-in. Then add the module to your configuration file :

'modules' => [
    'user' => [
        'class' => 'vip9008\googleuser\Module',
        'apiTokens' => [
            'clientId' => 'API_CREDENTIALS_CLIENT_ID',
            'clientSecret' => 'API_CREDENTIALS_CLIENT_SECRET',
        ],
    ],
    .
    .
    .
],

Available actions

/user/index
/user/sign-in
/user/sign-out