Skip to main content

OAuth Provider Setup

Overview

The SettleMint Platform requires OAuth authentication for:

  • User authentication
  • Access control
  • Single sign-on capabilities
  • Identity management

Provider Options

Google OAuth Setup

  1. Access Google Cloud Console

  2. Create OAuth Client

    • Click + CREATE CREDENTIALS
    • Select OAuth client ID
    • Choose Web application type
  3. Configure OAuth Client

    • Add Authorized JavaScript origins:
      https://your-domain.com
    • Add Authorized redirect URIs:
      https://your-domain.com/api/auth/callback/google
tip

Make sure to replace your-domain.com with your actual platform domain.

JWT Configuration

Generate a secure signing key for JWT tokens:

openssl rand -base64 32
caution

Store this key securely - it's used to sign user sessions.

Information Collection

Validation

Before proceeding, verify:

  1. OAuth client is properly configured
  2. Redirect URIs match your domain
  3. JWT signing key is generated and saved
  4. Required scopes are enabled

Troubleshooting

Common issues and solutions:

  1. Invalid Redirect URI

    • Verify exact URI match
    • Check for protocol (https) mismatch
    • Confirm domain spelling
  2. Authentication Failures

    • Verify client credentials
    • Check scope configurations
    • Validate JWT signing key

Next Steps

  1. ✅ Configure OAuth provider
  2. ✅ Generate JWT signing key
  3. ➡️ Proceed to PostgreSQL Setup
Need Help?

Contact [email protected] if you encounter any issues.