OAuth Redirect Proxy

This is a simple OAuth redirect proxy that forwards OAuth callbacks to StackOne.

How to use:

  1. Deploy this app to Vercel
  2. Configure your custom domain in Vercel (optional)
  3. Configure StackOne with redirectUri parameter pointing to your domain
  4. Use https://yourdomain.com/connect/oauth2/{provider}/callback as your OAuth redirect URI
  5. This proxy will automatically forward all OAuth callbacks to StackOne

OAuth Redirect Endpoint:

GET/POST /connect/oauth2/{provider}/callback

This endpoint receives OAuth callbacks and forwards them to:
https://api.stackone.com/connect/oauth2/{provider}/callback

GET requests: Redirects to StackOne with query parameters
POST requests: Forwards request body and headers to StackOne

Examples:

If your domain is myapp.com, configure your OAuth apps with:
https://myapp.com/connect/oauth2/google/callback
https://myapp.com/connect/oauth2/microsoft/callback
https://myapp.com/connect/oauth2/slack/callback

When OAuth providers redirect to this URL, this proxy will automatically forward the request to StackOne with all the same query parameters.