https://github.com/saqueib/social-auth
Starter kit for Socialite integration with Facebook, Google, Twitter and Github login
https://github.com/saqueib/social-auth
laravel oauth php socialite
Last synced: 7 months ago
JSON representation
Starter kit for Socialite integration with Facebook, Google, Twitter and Github login
- Host: GitHub
- URL: https://github.com/saqueib/social-auth
- Owner: saqueib
- License: mit
- Created: 2017-07-27T16:04:31.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T16:37:24.000Z (about 8 years ago)
- Last Synced: 2024-07-31T19:45:57.931Z (about 1 year ago)
- Topics: laravel, oauth, php, socialite
- Language: PHP
- Size: 223 KB
- Stars: 14
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# social-auth
Starter kit for Socialite integration with Facebook, Google, Twitter and Github login
http://www.qcode.in/oauth-login-using-facebook-google-twitter-and-github-with-laravel-socialite/## Installation
1. Clone this repo and run composer install
2. Now open and copy .env file `cp .env.example .env`
3. Edit your database credential in .env
4. Add all the providers `APP_ID` and `SECRET key`
```
FB_ID=app-id-here
FB_SECRET=app-secret-hereTW_ID=app-id-here
TW_SECRET=app-secret-hereGL_ID=app-id-here
GL_SECRET=app-secret-hereGH_ID=app-id-here
GH_SECRET=app-secret-here
```
> Make sure you set correct redirect url in dev console of providers. It should be like `env('APP_URL') . '/oauth/twitter/callback'` format.
5. Now you can run `php artisan migrate` and serve your appFor more information see the tutorial on [QCode.in](http://www.qcode.in/oauth-login-using-facebook-google-twitter-and-github-with-laravel-socialite/)