Skip to main content

OAuth Provider Integration

SureStage supports social login via OAuth 2.0 / OpenID Connect with multiple providers.

Supported Providers​

ProviderProtocolScopes
GoogleOAuth 2.0 + OIDCopenid, email, profile
GitHubOAuth 2.0user:email, read:user
MicrosoftOAuth 2.0 + OIDCopenid, 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).