Skip to content
getgeolens.com

Oauth Login

GET
/auth/oauth/{provider_slug}/login
curl --request GET \
--url https://example.com/api/auth/oauth/example/login

Redirect user to the IdP authorization URL with PKCE parameters.

Phase 268 H-27: the redirect_uri is handed to the IdP, where an attacker-controlled origin (via X-Forwarded-Host) would otherwise enable auth-code theft. We force explicit-config resolution by passing for_external_use=True; falling back to the request-origin is refused.

provider_slug
required
Provider Slug
string

Successful Response

Bad request — invalid query parameters or payload

Unauthorized — missing or invalid credentials

Forbidden — caller lacks access to this resource

Not found

Validation error

Internal server error