OAuth Provider Integration
SureStage supports social login via OAuth 2.0 / OpenID Connect with multiple providers.
Supported Providers
| Provider | Protocol | Scopes |
|---|---|---|
| OAuth 2.0 + OIDC | openid, email, profile | |
| GitHub | OAuth 2.0 | user:email, read:user |
| Microsoft | OAuth 2.0 + OIDC | openid, email, profile |
OAuth Flow
Endpoints
Initiate OAuth
GET /auth/oauth/:provider
Redirects the user to the provider's authorization page.
OAuth Callback
POST /auth/oauth/callback
Content-Type: application/json
{
"provider": "google",
"code": "authorization-code",
"redirectUri": "https://app.surestage.com/auth/callback"
}
Response: Returns SureStage JWT tokens (same format as login).