Skip to content

Single Sign-On

Related guide: Single Sign-On.

The identity provider calls the callbacks through the user’s browser, as part of an authentic transaction. Do not call them with manually built values.

GET /sso/login

Starts the federated login and redirects the browser to the provider.

Access: public.

ParameterInRequiredDescription
providerqueryYesIdentifier of the configured provider.

Responses: 302 — redirect to the identity provider.

GET /sso/logout

Starts the federated logout.

Access: SSO session.

ParameterInRequiredDescription
providerqueryYesIdentifier of the configured provider.

Responses: 302 — redirect to the provider or to the logout destination; 401 — session not accepted.

GET POST /sso/oauth2/cb

OAuth 2.0 and 2.1/OpenID Connect authorization callback.

Access: provider.

ParameterInRequiredDescription
statequery (GET) or form (POST)YesState created at the start of the flow.
codequery (GET) or form (POST)YesAuthorization code issued by the provider.

Responses: 302 — session established and redirect.

GET POST /sso/oauth2/logout/cb

OAuth 2.0 logout callback.

Access: provider.

ParameterInRequiredDescription
statequery (GET) or form (POST)YesState of the logout flow.
providerquery (GET) or form (POST)YesProvider identifier.

Responses: 302 — redirect after logout.

POST /sso/saml2/acs

Assertion Consumer Service: receives the SAML 2.0 authentication response.

Access: provider.

Field (form)RequiredDescription
SAMLResponseYesSAML response in Base64.
RelayStateNoState passed by the provider, when applicable.

Responses: 302 — session established and redirect.

GET POST /sso/saml2/slo

Single Logout: receives the SAML 2.0 logout message.

Access: provider.

ParameterInRequiredDescription
SAMLResponsequery (GET) or form (POST)NoSAML logout response in Base64.
RelayStatequery (GET) or form (POST)NoState passed by the provider.

Responses: 302 — redirect after logout.

GET /sso/saml2/metadata

Returns the XML metadata of the SAML 2.0 provider, used to register the API with the identity provider. You can specify the provider in the query string or in the path (/sso/saml2/metadata/{provider}).

Access: public.

ParameterInRequiredDescription
providerquery, or {provider} in the pathYesSAML provider identifier.

Responses: 200 — XML metadata.