Stampfactory
Dokumentation
Single Sign-on

SSO-Anmeldung starten

Answers with the authorize URL as JSON instead of a 302: the desktop and mobile clients have to hand the URL to a system browser, and the web client needs a full-page navigation it controls itself.

GET
/sso/redirect
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Query-Parameter

provider*string

Which identity provider to start the login with. Required: with more than one provider configurable per workspace there is no sensible default, and guessing one would silently send a person to the wrong directory.

Erlaubte Werte

  • "microsoft"
  • "google"
client*string

Erlaubte Werte

  • "web"
  • "desktop"
  • "mobile"
code_challenge*string

Client-held PKCE pair (RFC 7636 length bounds). It protects the exchange code on the deep-link legs, so it is mandatory and only S256 is accepted — plain would defeat the purpose.

Muster^[A-Za-z0-9\-._~]+$
Länge43 <= length <= 128
code_challenge_method*"S256"

Erlaubte Werte

  • "S256"
return?|

Open-redirect defence: a relative path and nothing else. host is a protocol-relative absolute URL and must not pass.

Muster#^/(?!/)[^\s\\]*$#
Längelength <= 255

Response-Body

application/json

application/json

curl -X GET "https://example.com/sso/redirect?provider=microsoft&client=web&code_challenge=stringstringstringstringstringstringstrings&code_challenge_method=S256"
{  "url": "string",  "expires_in": 0}