Skip to content
Connect an agent
Auth

Start signing in through an organisation's identity provider

Answers the provider's address and sets the flow cookie that binds the sign-in to this browser for ten minutes.

POST/auth/sso/start

TL;DR

QuestionAnswer
What does it do?Start signing in through an organisation's identity provider.
What does it take?A JSON body of type SsoStartBody.
What does it return?Status 200 with a body of type SsoStart.
What can go wrong?400 the address is not valid; 403 the request came from an origin that may not sign in, or sent none; 404 the address does not sign in with single sign-on (sso.not_configured); 429 too many requests; 503 the portal's address is not set on this server. Every failure uses the one error envelope.

What it does

Answers the provider's address and sets the flow cookie that binds the sign-in to this browser for ten minutes. OpenID Connect: authorization code with PKCE (S256), state and nonce. SAML: an AuthnRequest on the redirect binding with a RelayState. returnTo is kept only when its origin is Plotwork's. 404 sso.not_configured otherwise.

Request body

The body has the type SsoStartBody.

FieldTypeRequiredDescription
emailstringyesat least 3 characters; at most 254 characters.
returnTostringnoWhere to send the browser after signing in. Kept only when its origin is one of Plotwork's; otherwise the portal. at most 2000 characters.

Responses

StatusMeaningBody
200The provider's address.SsoStart
400The address is not valid.ErrorResponse
403The request came from an origin that may not sign in, or sent none.ErrorResponse
404The address does not sign in with single sign-on (sso.not_configured).ErrorResponse
429Too many requests.ErrorResponse
503The portal's address is not set on this server.ErrorResponse

Response body

A 200 answer has the type SsoStart.

FieldTypeRequiredDescription
urlstringyesThe identity provider's authorization address to send the browser to.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools