Skip to main content
POST
Create a sign-in connection
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Connects the organization to its identity provider, by XML metadata (a URL or the document) or by OpenID Connect (issuer, client id and secret). It starts pending. Needs a plan with sign-in.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Headers

Idempotency-Key
string

Not accepted on this call. Sending it is 400 bad_request.

Required string length: 1 - 255

Body

application/json
displayName
string
required
Required string length: 1 - 100
type
enum<string>
required
Available options:
saml
metadataUrl
string<uri>
metadataXml
string
Required string length: 100 - 512000

Response

The new connection.

certExpiresAt
string | null
required

When the signing certificate in the metadata expires.

clientId
string | null
required
createdAt
string
required
displayName
string
required
hasClientSecret
boolean
required

Whether a client secret is stored. Its value is never answered.

hasMetadataXml
boolean
required
id
string
required
issuer
string | null
required
metadataUrl
string | null
required
status
enum<string>
required

pending until the first sign-in through it, then active. disabled: switched off here.

Available options:
pending,
active,
disabled
type
enum<string>
required
Available options:
saml,
oidc
updatedAt
string
required