Custom Domains for Gately
Overview
Custom domains allow you to use your own domain (e.g.,auth.yourcompany.com) for external SDK authentication instead of Gately’s default domain. This provides a seamless, branded experience for your users when they authenticate through your applications.
Features
- Branded Authentication: Users authenticate through your domain instead of Gately’s
- SSL Certificates: Automatic SSL certificate provisioning
- Domain Verification: Built-in DNS verification process
- Status Monitoring: Real-time domain status tracking
- SDK Integration: Easy integration with external SDKs and applications
Requirements
- Paid Plan: Custom domains are available for Starter plan and above
- DNS Access: Ability to modify DNS records for your domain
- Domain Ownership: You must own the domain you want to use
Setup Guide
Step 1: Configure Your Custom Domain
- Navigate to Settings → Custom Domain in your Gately dashboard
- Enter your desired subdomain (e.g.,
auth.yourcompany.com) - Enable the custom domain checkbox
- Click Save Domain Settings
Step 2: DNS Configuration
After adding your domain, you’ll need to configure DNS records:CNAME Record
Add a CNAME record pointing your subdomain to Gately’s servers:Example DNS Configuration
Step 3: Verification
- After DNS configuration, verification typically takes 5-15 minutes
- Check the status in your Custom Domain settings page
- Status indicators:
- 🟡 Pending Verification: DNS propagation in progress
- 🟢 Active: Domain is verified and SSL is provisioned
- 🔴 Verification Failed: DNS configuration issue
Step 4: SSL Certificate Provisioning
Once DNS verification is complete:- SSL certificates are automatically provisioned
- This process typically takes 2-5 minutes
- Your domain will show “Active” status when ready
SDK Integration
Once your custom domain is active, use these URLs in your external applications:Authentication Endpoints
Google OAuth
GitHub OAuth
Base Auth URL
Example SDK Configuration
JavaScript SDK
React Integration
OAuth Provider Configuration
Google OAuth Setup
- Go to Google Cloud Console
- Navigate to APIs & Services → Credentials
- Edit your OAuth 2.0 Client ID
- Add your custom domain to Authorized redirect URIs:
GitHub OAuth Setup
- Go to GitHub Developer Settings
- Edit your OAuth App
- Update the Authorization callback URL:
Domain Status Reference
| Status | Description | Action Required |
|---|---|---|
| Pending Verification | DNS propagation in progress | Wait 5-15 minutes |
| Verifying | Checking DNS configuration | No action needed |
| Active | Domain verified and SSL provisioned | Ready to use |
| Verification Failed | DNS configuration issue | Check DNS records |
| SSL Provisioning Failed | SSL certificate issue | Contact support |
| Disabled | Domain manually disabled | Re-enable if needed |
Troubleshooting
Common Issues
DNS Propagation Delays
- Issue: Domain stuck in “Pending Verification”
- Solution: DNS changes can take up to 24 hours to propagate globally
- Check: Use
digor online DNS checkers to verify CNAME record
Incorrect DNS Configuration
- Issue: “Verification Failed” status
- Solution: Verify CNAME record points to
custom-domains.usegately.com - Common mistakes:
- Using A record instead of CNAME
- Incorrect target domain
- Missing subdomain
SSL Certificate Issues
- Issue: “SSL Provisioning Failed” status
- Solution: Contact Gately support
- Note: This is rare and usually resolves automatically
DNS Verification Commands
Check your DNS configuration:Security Considerations
SSL/TLS
- All custom domains use TLS 1.2+ encryption
- Automatic certificate renewal
- HSTS headers enabled for security
Domain Validation
- DNS-based domain ownership verification
- Prevents unauthorized domain usage
- Regular re-validation for active domains
Access Control
- Only project owners can configure custom domains
- Domain configuration requires authentication
- Audit logs for domain changes
API Reference
Get Custom Domains
Add Custom Domain
Delete Custom Domain
Limitations
- One domain per project: Each project can have one active custom domain
- Subdomain only: Root domains are not supported for security reasons
- DNS requirements: Must be able to create CNAME records
- Paid plans only: Feature requires Starter plan or higher
Best Practices
Domain Selection
- Use a dedicated subdomain (e.g.,
auth.,login.,sso.) - Keep it short and memorable
- Avoid special characters or numbers
DNS Management
- Use a reliable DNS provider
- Set appropriate TTL values (300-3600 seconds)
- Monitor DNS propagation after changes
Security
- Regularly monitor domain status
- Keep OAuth provider configurations updated
- Use HTTPS-only in your applications
Support
Getting Help
- Documentation: Check this guide first
- Status Page: Monitor service status at status.usegately.com
- Support: Contact support@usegately.com for technical issues
- Community: Join our Discord for community support
Common Support Requests
- DNS configuration assistance
- SSL certificate issues
- OAuth provider setup help
- Domain verification problems
Migration Guide
From Default Domain
If you’re migrating from Gately’s default domain:- Set up custom domain following this guide
- Update OAuth providers with new redirect URIs
- Update SDK configuration to use custom domain
- Test authentication flows thoroughly
- Deploy changes to production
Rollback Plan
- Keep old OAuth configurations until migration is complete
- Test with a staging environment first
- Have DNS rollback plan ready
Changelog
Version 1.0 (Current)
- Initial custom domain support
- DNS verification
- Automatic SSL provisioning
- OAuth provider integration
- Status monitoring
Planned Features
- Multiple domains per project
- Custom SSL certificate upload
- Advanced DNS configuration options
- Automated OAuth provider updates
For technical support or questions about custom domains, please contact our support team at support@usegately.com or visit our help center.