dev-master
9999999-dev http://www.canarium.phEnables Canarium to have a Google Login/Sign up functionality.
MIT
canarium una realidad
Wallogit.com
2017 © Pedro PelĂĄez
Enables Canarium to have a Google Login/Sign up functionality.
Enables Canarium to have a Google Login/Sign up functionality. This module also supports multiple associated accounts per Canarium User., (*1)
Install via composer:, (*2)
composer require unarealidad/canarium-libraries-google-sso dev-master, (*3)
Add GoogleSSO to your Appmaster's config/application.config.php or your Appinstance's config/instance.config.php under the key modules, (*4)
Copy the global config data/googlesso.global.php.dist to your Appinstance's config/autoload/ directory and remove the .dist extension. This is the global configuration., (*5)
Copy the sample config data/googlesso.local.php.dist to your Appinstance's config/autoload/ directory and remove the .dist extension., (*6)
Go to your Appinstance directory and run the following to update your database:, (*7)
./doctrine-module orm:schema-tool:update --force, (*8)
Configuration main key: googlesso
Sample Config file: data/googlesso.global.php.dist, data/googlesso.local.php.dist, (*9)
| Config Item | Sample Value | Required | Description |
|---|---|---|---|
| client_id | '4847851890871-6gjh8mc244tmct68gs72' | true | The google client id used to connect to the api |
| client_secret | 'ExW6DGwai_sI9Nv' | true | The google client secret used to connect to the api |
| scope | array('https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/userinfo.email') | true | The google permissions to request to the user. |
| redirect_uri | 'http://samplesite.com/oauth2callback' | true | The redirect URL to be used in the Google authentication. This will always be the /oauth2callback route of your site. |
| auth_class_service | 'GoogleSSO\Authentication\ForceLogin' | false | The authentication class to use. This can either be GoogleSSO\Authentication\ForceLogin or GoogleSSO\Authentication\ConnectedAccount. Defaults to GoogleSSO\Authentication\ForceLogin. |
| use_connected_accounts | false | false | Whether to allow connecting of multiple accounts to a single canarium login |
| URL | Template | Access | Description |
|---|---|---|---|
| /oauth2callback | None | Guest | The url that google will use to pass the authentication code after a sucessful login |
By setting the auth_class_service to GoogleSSO\Authentication\ConnectedAccount and use_connected_accounts to true, you can associate multiple google accounts into one canarium user. This feature is still under development and is not flexible enough for multiple use cases., (*10)
None, (*11)
Enables Canarium to have a Google Login/Sign up functionality.
MIT
canarium una realidad