Pular para o conteúdo principal

Social Login (Google & GitHub)

FeedbackPulse supports OAuth2 login with Google and GitHub. Users can sign in with one click instead of creating a password.


🟢 Google Login Setup

Step 1: Create a Google OAuth Client

  1. Va para Google Cloud Console
  2. Create a new project (or select an existing one)
  3. Va para APIs & Services → Credentials
  4. Click Create Credentials → OAuth client ID
  5. Application type: Web application
  6. Name: "FeedbackPulse"
  7. Authorized redirect URIs: https://yourdomain.com/auth/google/callback
  8. Click Create
  9. Copy the Client ID and Client Secret

Step 2: Configure .env

GOOGLE_CLIENT_ID=xxxxxxxxxxxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-xxxxxxxxxxxxxxxx

Step 3: Enable in Admin Panel

Va para Admin → Configuracoes → Registration:

  • Enable Google login
  • Save

🐙 GitHub Login Setup

Step 1: Create a GitHub OAuth App

  1. Va para GitHub Developer Configuracoes
  2. Click New OAuth App
  3. Application name: "FeedbackPulse"
  4. Homepage URL: https://yourdomain.com
  5. Authorization callback URL: https://yourdomain.com/auth/github/callback
  6. Click Register application
  7. Copy the Client ID
  8. Click Generate a new client secret → copy it

Step 2: Configure .env

GITHUB_CLIENT_ID=your_client_id
GITHUB_CLIENT_SECRET=your_client_secret

⏭️ Proximos Passos