Social Login #
We have implemented Social Login using Laravel Socialite. You can use any of the social login provider that is supported by Laravel Socialite except twitter
.
Configuration #
- Create OAuth app in social sites.
- Navigate to
.env
file. - Fill your credentials. E.g.
text
FACEBOOK_ACTIVE=true
FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT=http://dashcode-laravel.test/login/facebook/callback
GITHUB_ACTIVE=true
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT=http://dashcode-laravel.test/login/github/callback
GOOGLE_ACTIVE=true
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT=http://dashcode-laravel.test/login/google/callback
LINKEDIN_ACTIVE=true
LINKEDIN_CLIENT_ID=
LINKEDIN_CLIENT_SECRET=
LINKEDIN_REDIRECT=http://dashcode-laravel.test/login/linkedin/callback
- When creating app in social sites. Your callback URL should be in this format.
your-app-url/login/{provied-name}/callback