Youniton Docs

Sign-in

The step-based sign-in surface, SAML and the exit surface of a suspended tenant.

#Ask for an independent account recovery (always the same answer)

POST/auth/account-recovery
Sign-in surface (browser)F-IDN-15

Request body application/jsonrequired

Loading the schema…

Responses

202Accepted; an e-mail goes out only for an eligible account.

No body.

Errors422429One problem shape

#Cancel the open request from the recovery browser, without a session

POST/auth/account-recovery/{requestId}/cancel
Sign-in surface (browser)F-IDN-15

XM-1026 (G-REC-03). Only the browser that the request is bound to can cancel this way. The e-mail's cancel link and a session also cancel.

Path parameters

requestIdrequiredstring (uuid)

An account-recovery request id.

Responses

204Cancelled.

No body.

Errors403404409429One problem shape

#P1 — the bound browser presents a trusted device of the account

POST/auth/account-recovery/{requestId}/evidence/device
Sign-in surface (browser)F-IDN-15

Path parameters

requestIdrequiredstring (uuid)

An account-recovery request id.

Responses

200The updated request.application/json
Errors403404429One problem shape

#E2 — the account's own password, or a Google or Microsoft round trip

POST/auth/account-recovery/{requestId}/evidence/primary
Sign-in surface (browser)F-IDN-15

Path parameters

requestIdrequiredstring (uuid)

An account-recovery request id.

Request body application/jsonrequired

Loading the schema…

Responses

200The updated request, or a redirect for a provider round trip.application/json
Errors401403404422429One problem shape

#P3 — a personal access token of the account, compared by hash

POST/auth/account-recovery/{requestId}/evidence/token
Sign-in surface (browser)F-IDN-15

Path parameters

requestIdrequiredstring (uuid)

An account-recovery request id.

Request body application/jsonrequired

Loading the schema…

Responses

200The updated request.application/json
Errors403404429One problem shape

#Hand the request to Youniton's support for review

POST/auth/account-recovery/{requestId}/submit
Sign-in surface (browser)F-IDN-15

Path parameters

requestIdrequiredstring (uuid)

An account-recovery request id.

Responses

200The submitted request.application/json
Errors403404409One problem shape

#The open request of this browser (bound with E1), without a session

GET/auth/account-recovery/current
Sign-in surface (browser)F-IDN-15

XM-1024 (G-REC-01). The recovery page reads its request after an E2 provider round trip and on a reload. The answer is the same 204 when no request is open and when the open request belongs to another browser.

Responses

200The open request of this browser, with the waits and the E2 providers.application/json
204No open request is bound to this browser.

No body.

#E1 — the token from the e-mail's link binds the request to this browser

POST/auth/account-recovery/email
Sign-in surface (browser)F-IDN-15

Request body application/jsonrequired

Loading the schema…

Responses

200The request with its evidence and what is missing.application/json
Errors400429One problem shape

#Abandon the current sign-in attempt

POST/auth/cancel
Sign-in surface (browser)F-IDN-05

Responses

204The attempt is gone (also when none existed).

No body.

Errors404419One problem shape

#Issue a pending authenticator secret during a sign-in that requires 2FA

POST/auth/enrolment
Sign-in surface (browser)F-IDN-09

Request body application/json

Loading the schema…

Responses

201The pending secret as QR code, setup key and URI, valid 10 minutes.application/json
Errors401403404429One problem shape

#Confirm the pending secret with a code; returns the recovery codes once and the session (an exit attempt gets its grant, no codes)

POST/auth/enrolment/confirm
Sign-in surface (browser)F-IDN-09

Request body application/jsonrequired

Loading the schema…

Responses

200The attempt view and, for every attempt except an exit attempt, the eight recovery codes (shown once). An exit attempt (intent exit_export, R09) answers only the attempt view in state exit_granted; its factor issues no recovery codes (XM-1072).application/json
Errors401404409410422429One problem shape

#Start an exit attempt bound to one tenant; the same neutral attempt view for any slug

POST/auth/exit
Sign-in surface (browser)F-PLT-09

404 tenant.not_found only on a tenant-pinned host (XM-1048: the trusted X-Kanso-Pinned-Tenant of its edge proxy): there a slug that does not name the pinned tenant (another tenant's, an unknown one, one that cannot exist) gets this one answer. Every other host answers every slug with the same neutral attempt view.

Request body application/jsonrequired

Loading the schema…

Responses

200The attempt view with intent exit_export.application/json
Errors404422429One problem shape

#Exchange the one-time entry token for an app session as the user

POST/auth/impersonation/enter
Sign-in surface (browser)F-PLT-22

Request body application/jsonrequired

Loading the schema…

Responses

200The app session now acts as the user; the state for the banner.application/json
Errors401422One problem shape

#Accept with a password (new or existing account) or with the current session

POST/auth/invitations/accept
Sign-in surface (browser)F-TEN-08

Request body application/jsonrequired

Loading the schema…

Responses

200The sign-in attempt view — pending_enrolment, pending_second_factor or session with its landing.application/json
Errors401403404409410422429One problem shape

#Resolve an invitation token into the landing card

POST/auth/invitations/lookup
Sign-in surface (browser)F-TEN-08

Request body application/jsonrequired

Loading the schema…

Responses

200A usable invitation; Cache-Control no-store.application/json
Errors404410422429One problem shape

#The provider's redirect back; continues the attempt

GET/auth/oidc/{provider}/callback
Sign-in surface (browser)F-IDN-03

Path parameters

providerrequiredstring

One of: google microsoft

Query parameters

codestring

Max length 4096

staterequiredstring

Max length 256

errorstring

Max length 256

Responses

303To /sign-in/continue (on the console origin, to the console's sign-in page, R10); the outcome is read from GET /auth/state.

No body.

Errors400404429One problem shape

#Start a Google or Microsoft round trip for an intent

POST/auth/oidc/{provider}/start
Sign-in surface (browser)F-IDN-03

Path parameters

providerrequiredstring

One of: google microsoft

Request body application/jsonrequired

Loading the schema…

Responses

200The provider's authorization URL for a top-level navigation.application/json
Errors401404409422429503One problem shape

#Start the console attempt that proves the invited e-mail and enrols TOTP before activation

POST/auth/operator-invitations/accept
Sign-in surface (browser)F-PLT-17

Request body application/jsonrequired

Loading the schema…

Responses

200The console attempt view after the password step — pending_second_factor for an enrolled existing account, else pending_enrolment (R04, R12).application/json
Errors401404409422429One problem shape

#Resolve an operator invitation token on the console (one neutral 404 for every invalid token)

POST/auth/operator-invitations/lookup
Sign-in surface (browser)F-PLT-17

Request body application/jsonrequired

Loading the schema…

Responses

200The invitation's name, e-mail, role and expiry.application/json
Errors404429One problem shape

#Verify an e-mail and password and continue the sign-in

POST/auth/password
Sign-in surface (browser)F-IDN-02

Request body application/jsonrequired

Loading the schema…

Responses

200The attempt view after the evaluation — pending_second_factor, pending_enrolment or session with the landing.application/json
Errors401403404419422429503One problem shape

#Ask for a password-reset link (always the same answer)

POST/auth/password-reset
Sign-in surface (browser)F-IDN-10

Request body application/jsonrequired

Loading the schema…

Responses

202Accepted; an e-mail goes out only to an active account with a password.

No body.

Errors422429One problem shape

#Set a new password with the token from the link and continue the sign-in

POST/auth/password-reset/complete
Sign-in surface (browser)F-IDN-10

Request body application/jsonrequired

Loading the schema…

Responses

200The attempt view (pending_second_factor, pending_enrolment or session).application/json
Errors400422429One problem shape

#Read the password rules of an open reset link (the minimum of the strictest tenant)

POST/auth/password-reset/policy
Sign-in surface (browser)F-IDN-10

XM-1050 (G-SGN-02; R11). The token goes in the body, never in the address. The answer names no tenant and no account. The completion's limiter applies (per IP, one budget for reads and completions). Every unusable token answers the same 400 password_reset.invalid_token as the completion. The read writes nothing; the link stays open.

Request body application/jsonrequired

Loading the schema…

Responses

200The password rules of the link's account.application/json
Errors400429One problem shape

#Record a fresh proof for a re-authentication window

POST/auth/reauthenticate
Sign-in surface (browser)F-IDN-05

Request body application/jsonrequired

Loading the schema…

Responses

200The stamp's window and validity, or a redirect URL for a provider round trip.application/json
Errors401404422429One problem shape

#Complete the pending sign-in with a recovery code

POST/auth/recovery-code
Sign-in surface (browser)F-IDN-16

Request body application/jsonrequired

Loading the schema…

Responses

200The attempt view in state session with recoveryCodesRemaining.application/json
Errors401404410422429One problem shape

#Consume the one-time handoff in the browser that started the attempt

GET/auth/saml/continue
Sign-in surface (browser)F-IDN-04

Query parameters

handoffrequiredstring

Pattern ^[A-Za-z0-9_-]{43}$

Responses

303To /sign-in/continue.

No body.

#The neutral SAML exit start's one-time hand-off — to the tenant's IdP, or ending like a refused assertion

GET/auth/saml/exit
Sign-in surface (browser)F-PLT-09

Register §41.10 (c); S04: POST /auth/sso with intent exit_export (the e-mail optional, only a login hint; the tenant is the exit attempt's, XM-1072) answers this app-origin URL and an empty tenant name for every slug — unknown, without SAML, with it — so the API answer reveals neither SAML use nor the IdP. Followed once (60 seconds), by the browser that started it only (another browser gets 401 auth.attempt_expired and its own attempt is untouched; REV-XP11-18): 302 to the tenant's IdP with ForceAuthn (or its HTTP-POST page), else 303 to /sign-in/continue, the attempt ended auth.failed as after an assertion the IdP refused. Following it necessarily shows whoever follows it the tenant's IdP — the credential is entered there; this is inherent to SAML and bounded by the exit start limiter (REV-XP11-16, accepted by the coordinator).

Query parameters

handlerequiredstring

Pattern ^[A-Za-z0-9_-]{43}$

Responses

302To the tenant's IdP (no-store, no referrer).

No body.

303To /sign-in/continue, the attempt failed.

No body.

#The one-time page that posts a signed AuthnRequest to an IdP taking only the HTTP-POST binding

GET/auth/saml/post
Sign-in surface (browser)F-IDN-04

XM-34 (SAML bindings §3.5): the redirectUrl of the SSO start, a step-up or a test sign-in when the IdP's metadata offers only HTTP-POST. An HTML form carrying the base64 SAMLRequest (enveloped RSA-SHA256 signature), submitted by a nonce'd script; the CSP allows nothing else and form-action only the IdP's origin. The handle is single use and lives 60 seconds.

Query parameters

handlerequiredstring

Pattern ^[A-Za-z0-9_-]{43}$

Responses

200The auto-submitting form (text/html, no-store).text/html

#End the current session (and, for SAML with the tenant's opt-in, start the IdP logout)

POST/auth/sign-out
Sign-in surface (browser)F-IDN-13

Responses

200Signed out locally; continue the identity provider's logout at redirectUrl.application/json
204Signed out (or there was no session).

No body.

Errors404419One problem shape

#Resolve the tenant from the work e-mail and start its SAML sign-in

POST/auth/sso
Sign-in surface (browser)F-IDN-04

sign_in and invitation need the work e-mail. With intent exit_export (F-PLT-09.R08; XM-1072) the tenant is the browser's started exit attempt's (POST /auth/exit); the e-mail is optional and only the IdP's login hint. That start answers the neutral hand-off of handOffExitSaml and an empty tenant name for every exit slug, and 401 auth.attempt_expired without a started exit attempt. Every intent answers 503 service.unavailable while the service provider is not configured.

Request body application/jsonrequired

Loading the schema…

Responses

200The tenant's name and the IdP redirect URL.application/json
Errors401403404409410422429503One problem shape

#The current attempt, or the signed-in landing

GET/auth/state
Sign-in surface (browser)F-IDN-05

Responses

200The attempt view, or state session with the landing.application/json
204Neither an attempt nor a session.

No body.

Errors401404One problem shape

#Start a step-up for a tenant whose policy the session does not yet satisfy

POST/auth/step-up
Sign-in surface (browser)F-IDN-05

Request body application/jsonrequired

Loading the schema…

Responses

200The step-up attempt view (pending_second_factor, pending_enrolment) or, for reason saml, the IdP redirect (F-IDN-04.R05 rule 4; XM-34).application/json
Errors401403404422429503One problem shape

#Verify the authenticator code of the pending sign-in or step-up

POST/auth/totp
Sign-in surface (browser)F-IDN-07

Request body application/jsonrequired

Loading the schema…

Responses

200The attempt view in state session with the landing (or the completed step-up).application/json
Errors401404410422429One problem shape

#The exit grant's view — tenant, administrator, expiry and the tenant's exports

GET/exit
Session (app only)F-PLT-09

Responses

200The grant view.application/json
Errors401403One problem shape

#Request a fresh tenant export (an export-class operation that runs during the suspension)

POST/exit/exports
Session (app only)F-PLT-09

Exempt from Idempotency-Key (REV-XP11-10): one export runs per tenant at a time, so a retry after a lost 202 cannot start a second one — it answers 409 exit.export_in_progress, and GET /exit lists the running export to continue with.

Responses

202The export in state queued or generating.application/json
Errors401403409One problem shape

#State and manifest summary of one export of the grant's tenant

GET/exit/exports/{exportId}
Session (app only)F-PLT-09

Path parameters

exportIdrequiredstring (uuid)

Responses

200The export; Retry-After while generating.application/json
Errors401404One problem shape

#Redirect to a 60-second signed download URL (at most five per grant)

GET/exit/exports/{exportId}/download
Session (app only)F-PLT-09

Path parameters

exportIdrequiredstring (uuid)

Responses

302To the signed URL with Content-Disposition attachment.

No body.

Errors401403404One problem shape

#Revoke the exit grant and clear its cookie

POST/exit/sign-out
Session (app only)F-PLT-09

Responses

204The grant is revoked.

No body.

#The tenant's assertion consumer service (HTTP-POST binding)

POST/saml/{tenantId}/acs
Sign-in surface (browser)F-IDN-04

Path parameters

tenantIdrequiredstring (uuid)

Request body application/x-www-form-urlencodedrequired

Loading the schema…

Responses

303To /auth/saml/continue with a one-time handoff code.

No body.

Errors400404429One problem shape

#The tenant's SAML service-provider metadata (XML) for its IdP

GET/saml/{tenantId}/metadata
Sign-in surface (browser)Public in contract · app only for tokensF-IDN-22

The contract marks this operation public, but the token catalogue (version 7) does not open it to personal tokens. A token call answers 404 route.not_found.

Path parameters

tenantIdrequiredstring (uuid)

Responses

200SP entityID, ACS, SLS and the platform SP certificate(s) as application/samlmetadata+xml.

No body.

#The same over the HTTP-Redirect binding

GET/saml/{tenantId}/sls
Sign-in surface (browser)F-IDN-04

Path parameters

tenantIdrequiredstring (uuid)

Query parameters

SAMLRequeststring

Max length 65536

SAMLResponsestring

Max length 65536

Responses

302The LogoutResponse to the IdP, or /sign-in after an SP-initiated logout.

No body.

Errors400404One problem shape

#IdP-initiated LogoutRequest or the LogoutResponse to an SP-initiated logout (POST binding)

POST/saml/{tenantId}/sls
Sign-in surface (browser)F-IDN-04

Path parameters

tenantIdrequiredstring (uuid)

Responses

200A LogoutResponse (auto-posting form) or a redirect to /sign-in.

No body.

Errors400404One problem shape

Was this helpful?