https://github.com/tri613/google-login
Google sign in for web -- test example
https://github.com/tri613/google-login
Last synced: 9 months ago
JSON representation
Google sign in for web -- test example
- Host: GitHub
- URL: https://github.com/tri613/google-login
- Owner: tri613
- Created: 2016-11-23T05:41:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T06:04:30.000Z (over 9 years ago)
- Last Synced: 2025-07-21T20:59:21.458Z (12 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
只是想要實作看看Google login,所以按鈕並沒有符合Google規範哈哈。
用了兩種方式接,一種是用js(+php),一種是純後端(php),
程式碼分別在 `with-js` 和 `with-server`下面。
:warning:
- 憑證不包含在repository裡面
- 在根目錄下放上從google api console裡面下載的JSON憑證,並命名為 `client_secret.json`
- 更改 `config.php` ,將裡面替換成自己的 client id 即可
- google api client程式碼也不在裡面
- clone下來執行 `composer install` 即可