Social Auth
Allow your customers to log in or register quickly using their existing social media accounts.
Supported Providers
All providers below are built into laravel/socialite (no extra packages required), except Envato which uses socialiteproviders/envato.
| Provider | Driver | Notes |
|---|---|---|
google | ||
facebook | ||
| GitHub | github | |
| GitLab | gitlab | |
linkedin-openid | Uses OpenID Connect (recommended) | |
| Bitbucket | bitbucket | |
| Slack | slack-openid | Uses OpenID Connect (recommended) |
| Twitch | twitch | |
| Twitter / X | twitter | |
| Envato | envato | Essential for verifying Envato purchases |
How to Configure
- Create an App: Register a developer application on the respective provider's platform (e.g., Google Cloud Console).
- Obtain Credentials: Copy the Client ID and Client Secret.
- Set Redirect URL: In your provider's app settings, set the Redirect URI to:
https://yourdomain.com/auth/{provider}/callback - Enter Details in Admin: Go to Admin Dashboard > Settings > Social Auth and paste your credentials.
Provider Setup Guides
Google
- Go to the Google Cloud Console and create or select a project.
- Navigate to APIs & Services > Credentials and click Create Credentials > OAuth client ID.
- Select Web application, then add your redirect URI:
https://yourdomain.com/auth/google/callback - Copy the Client ID and Client Secret.
- In the admin panel go to Settings > Social Auth > Google, enable it, and paste your credentials.
Facebook
- Go to Meta for Developers and create an app (type: Consumer).
- Add the Facebook Login product to your app.
- Under Facebook Login > Settings, add your redirect URI:
https://yourdomain.com/auth/facebook/callback - Copy the App ID and App Secret from Settings > Basic.
- In the admin panel go to Settings > Social Auth > Facebook.
GitHub
- Go to GitHub Developer Settings and click New OAuth App.
- Set the Authorization callback URL to:
https://yourdomain.com/auth/github/callback - Copy the Client ID and generate a Client Secret.
- In the admin panel go to Settings > Social Auth > GitHub.
GitLab
- Go to your GitLab profile > Preferences > Applications (or use the Admin Area for an instance-wide app).
- Add a redirect URI:
https://yourdomain.com/auth/gitlab/callback - Select scopes:
read_user,openid,email,profile. - Copy the Application ID (Client ID) and Secret.
- In the admin panel go to Settings > Social Auth > GitLab.
LinkedIn
- Go to the LinkedIn Developer Portal and create an app.
- Under Auth, add a redirect URI:
https://yourdomain.com/auth/linkedin-openid/callback - Add the
openid,profile, andemailscopes under Products > Sign In with LinkedIn using OpenID Connect. - Copy the Client ID and Client Secret.
- In the admin panel go to Settings > Social Auth > LinkedIn.
Bitbucket
- Go to your Bitbucket workspace > Settings > OAuth consumers and click Add consumer.
- Set the Callback URL to:
https://yourdomain.com/auth/bitbucket/callback - Grant permissions: Account: Read, Email: Read.
- Copy the Key (Client ID) and Secret.
- In the admin panel go to Settings > Social Auth > Bitbucket.
Slack
- Go to the Slack API and create a new app.
- Under OAuth & Permissions, add a redirect URI:
https://yourdomain.com/auth/slack-openid/callback - Add scopes:
openid,profile,email. - Copy the Client ID and Client Secret from Basic Information.
- In the admin panel go to Settings > Social Auth > Slack.
Twitch
- Go to the Twitch Developer Console and register a new application.
- Set the OAuth Redirect URL to:
https://yourdomain.com/auth/twitch/callback - Copy the Client ID and generate a Client Secret.
- In the admin panel go to Settings > Social Auth > Twitch.
Twitter / X
- Go to the Twitter Developer Portal and create a project and app.
- Under User authentication settings, enable OAuth 2.0 and set the redirect URI to:
https://yourdomain.com/auth/twitter/callback - Copy the Client ID and Client Secret.
- In the admin panel go to Settings > Social Auth > Twitter / X.
Envato
- Go to Envato API and create an app.
- Set the Confirmation URL to:
https://yourdomain.com/auth/envato/callback - Copy the OAuth Client ID and Client Secret.
- In the admin panel go to Settings > Social Auth > Envato.