Social Login Configuration¶
The Prowler App supports social login using Google and GitHub OAuth providers. This document guides you through configuring the required environment variables to enable social authentication.
Configuring Social Login Credentials¶
To enable social login with Google and GitHub, you must define the following environment variables:
Google OAuth Configuration¶
Set the following environment variables for Google OAuth:
GitHub OAuth Configuration¶
Set the following environment variables for GitHub OAuth:
Important Notes¶
- If either
SOCIAL_GOOGLE_OAUTH_CLIENT_ID
orSOCIAL_GOOGLE_OAUTH_CLIENT_SECRET
is empty or not defined, the Google login button will be disabled. - If either
SOCIAL_GITHUB_OAUTH_CLIENT_ID
orSOCIAL_GITHUB_OAUTH_CLIENT_SECRET
is empty or not defined, the GitHub login button will be disabled.
Obtaining OAuth Credentials¶
To obtain CLIENT_ID
and CLIENT_SECRET
for each provider, follow their official documentation:
- Google OAuth: Google OAuth Credentials Setup
- GitHub OAuth: GitHub OAuth App Setup
Steps Overview¶
For both providers, the process generally involves:
- Registering your application in the provider's developer portal.
- Defining the authorized redirect URL (
SOCIAL_<PROVIDER>_OAUTH_CALLBACK_URL
). - Copying the generated
CLIENT_ID
andCLIENT_SECRET
into the corresponding environment variables.
Once completed, ensure your environment variables are correctly loaded in your Prowler deployment to activate social login.