This document outlines the OAuth redirect URIs that need to be configured in each provider's console after updating to use api.oncallhealth.ai.
Ensure these are set in your Railway backend environment:
GOOGLE_REDIRECT_URI=https://api.oncallhealth.ai/auth/google/callback
GITHUB_REDIRECT_URI=https://api.oncallhealth.ai/auth/github/callback
SLACK_REDIRECT_URI=https://api.oncallhealth.ai/auth/slack/callback
FRONTEND_URL=https://oncallhealth.ai
PRODUCTION_FRONTEND_URL=https://oncallhealth.aiFrontend (Vercel):
NEXT_PUBLIC_API_URL=https://api.oncallhealth.ai
NEXT_PUBLIC_API_BASE_URL=https://api.oncallhealth.aiLocation: https://console.cloud.google.com/apis/credentials
Steps:
- Navigate to APIs & Services → Credentials
- Click on your OAuth 2.0 Client ID
- Update Authorized redirect URIs:
- Add:
https://api.oncallhealth.ai/auth/google/callback - Remove old:
https://rootly-burnout-detector-web-production.up.railway.app/auth/google/callback
- Add:
- Update Authorized JavaScript origins:
- Add:
https://oncallhealth.ai - Add:
https://api.oncallhealth.ai
- Add:
- Click Save
OAuth Consent Screen (Optional branding update):
- Go to OAuth consent screen tab
- Update Application name to "On-Call Health"
- Update Application homepage to
https://oncallhealth.ai - Upload logo if desired
Location: https://github.com/settings/developers
Steps:
- Click on your OAuth App
- Update Authorization callback URL:
- Change to:
https://api.oncallhealth.ai/auth/github/callback
- Change to:
- Update Homepage URL to:
https://oncallhealth.ai - Click Update application
Location: https://api.slack.com/apps
Steps:
- Select your app
- Go to OAuth & Permissions in the sidebar
- Under Redirect URLs:
- Add:
https://api.oncallhealth.ai/auth/slack/callback - Remove old Railway URL
- Add:
- Click Save URLs
App Settings (branding):
- Go to Basic Information
- Update App Name to "On-Call Health"
- Update Short Description
- Upload app icon
- Click Save Changes
Location: https://developer.atlassian.com/console/myapps/
Steps:
- Select your app
- Go to Authorization → OAuth 2.0 (3LO)
- Update Callback URL:
- Change to:
https://api.oncallhealth.ai/setup/jira/callback
- Change to:
- Click Save changes
Location: https://linear.app/settings/api/applications
Steps:
- Select your OAuth application
- Update Callback URLs:
- Change to:
https://api.oncallhealth.ai/setup/linear/callback
- Change to:
- Update Application URL to:
https://oncallhealth.ai - Click Update
After updating all OAuth providers:
- Google Sign-in shows
oncallhealth.aiin consent screen - GitHub OAuth redirects correctly
- Slack workspace connection works
- Jira integration connects successfully
- Linear integration connects successfully
- No CORS errors in browser console
- All callbacks redirect to correct domain
If issues occur, revert environment variables to use Railway domain:
# Backend
GOOGLE_REDIRECT_URI=https://rootly-burnout-detector-web-production.up.railway.app/auth/google/callback
GITHUB_REDIRECT_URI=https://rootly-burnout-detector-web-production.up.railway.app/auth/github/callback
# Frontend
NEXT_PUBLIC_API_URL=https://rootly-burnout-detector-web-production.up.railway.appAnd re-add Railway URLs to OAuth provider consoles.
- Keep both old and new redirect URIs active during transition period
- Test thoroughly in staging before removing old URIs
- Update documentation/README with new domain
- Consider adding
api.oncallhealth.aito your DNS if not already set up