https://github.com/ngekoding/google-login-example
Integrating Google Login in CodeIgniter
https://github.com/ngekoding/google-login-example
Last synced: 12 months ago
JSON representation
Integrating Google Login in CodeIgniter
- Host: GitHub
- URL: https://github.com/ngekoding/google-login-example
- Owner: ngekoding
- License: mit
- Created: 2019-02-13T02:46:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T03:00:46.000Z (about 7 years ago)
- Last Synced: 2025-01-07T13:47:06.270Z (about 1 year ago)
- Language: PHP
- Size: 490 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Google Login + CodeIgniter
Integrating Google Login with CodeIgniter by Ngekoding.
## Important
1. Make sure composer was installed
2. Make sure you have Google client id and client secret (also setting for callback url, etc.)
- For local use
- Setting in **OAuth consent screen** --> Authorized domains: use virtualhost (e.g. ngekoding.me)
- Setting in **Credentials** --> Authorized redirect URIs: http://ngekoding.me/index.php/auth/google_callback
## How to install
1. Clone/download this repo and place to your local server
- XAMPP: path/to/xampp/htdocs
2. Open `application/config/config.php` and change `base_url` to your own setting (Note: for local use, please use a virtualhost)
3. Rename `google.example.php` to `google.php` in `application/config` and change the value (g_client_id, etc.)
3. Installing google client library
- Open CMD/Terminal
- Go to project directory `google-login/application`
- Run `composer install`
- Finish
4. Open browser and type the address (e.g http://ngekoding.me)
### Happy coding!