OAuth
3 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
Begin OAuth flow (302 redirect)#
GET
/auth/oauth/authorizeÖffentlichParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
providerPflicht | Query | string | Werte: |
redirectToPflicht | Query | string | Frontend URL to land on after the callback completes. MUST be in ALLOWED_ORIGINS. |
prompt | Query | string | Silent sign-in: `none` asks the provider to reuse an existing session without showing a login screen. Without one, the callback returns to the login page with no error. Werte: |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/auth/oauth/authorize"OAuth callback — exchange code for session#
GET
/auth/oauth/callbackÖffentlichParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
codePflicht | Query | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/auth/oauth/callback"List OAuth providers the login page should render#
GET
/auth/oauth/providersÖffentlichDeployment-aware and pre-auth. SaaS returns the fixed cloud set (Azure only). On-premise returns the subset of providers an admin has enabled in Tenant Config for the pinned org. Keycloak is never returned off-premise.
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/auth/oauth/providers"