Skip to main content
Infrastructure/Federation & SSO

OpenSSOSession

Prepare a verified identity and return a passwordless redirect URL. For Anheng, the compatibility JWT is checked locally and never forwarded to AH; builtin admin uses its read-only pre-provisioned identity, platform-admin uses fixed global scope and the shared zcf-global-platform-admins Team, and project-admin supplies X-ZStack-Session to derive exactly one Project. The frontend does not send ProjectID. ZCF trusts the BFF credential pairing and does not introspect Cloud session owner or login scope.

POST/api/v1/federation/platforms/{platformId}/sso/login

Operation ID

OpenSSOSession

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Path Parameters

  • platformId
    StringRequired

    Target platform UUID — must reference a connected ah_tianchi platform.

Header Parameters

  • X-ZStack-Session
    String

    Required for an Anheng project-admin; optional for builtin and fixed-global platform administrators. Never logged, audited, persisted, or returned in errors.

Body Fields

OpenSSOSessionRequest carries the target platform UUID (path param) and the compatibility session JWT (body). The JWT must NOT appear in any log, audit record, remote AH request, or response. For AH, the stable JWT subject of every non-builtin user must match the authenticated ZIAM subject; identity and account data come from Authorization /api/userinfo, and GenSsoUrl receives only the verified/synchronized AH identity. A trusted builtin administrator uses its pre-provisioned read-only identity.

  • jwt
    String

    Compatibility session JWT. Anheng checks its stable subject locally for non-builtin users and does not forward the JWT to AH; Authorization /api/userinfo remains authoritative.

    Example: eyJhbGciOiJSUzI1NiJ9...

Responses

200 OK

A successful response.

Content-Type: application/json

Response body root type: object

OpenSSOSessionResponse carries the one-time redirect URL minted by the remote SSO API. The URL is host-validated against the platform endpoint before being returned to the caller.

  • ssoUrl
    String

    Passwordless redirect URL on the target platform. Host validated.

    Example: https://172.26.105.251/sso/redirect?token=...

  • Change Time

    AddedRequest parameters X-ZStack-Session
    View API