user

Sso Status

Check SSO user registration state.

Returns one of three states:

  1. new_user: No user exists with this email
  2. local_exists: User exists but registered locally (can link to SSO)
  3. sso_exists: User exists and already linked to SSO

Frontend uses this to show appropriate UI:

  • new_user -> "Set Master Password"
  • local_exists -> "Link SSO? Enter current master password"
  • sso_exists -> "Enter Master Password"
post/api/user/sso-status

Request body

sso_tokenstring required
emailstring email required
given_namestring nullable
family_namestring nullable
picturestring nullable

Response

Successful Response

statusstring required
emailstring email required
given_namestring nullable
family_namestring nullable

Changes

Changed in 2 of the 34 revisions of this API.26

  • aa4b06f8dede25See the full diff
    • removed the optional property last_name from the response with the 200 status

      response-optional-property-removed

    • removed the optional property name from the response with the 200 status

      response-optional-property-removed

    • added the new optional request property family_name

      new-optional-request-property

    • added the new optional request property given_name

      new-optional-request-property

    • added the new optional request property picture

      new-optional-request-property

    • added the optional property family_name to the response with the 200 status

      response-optional-property-added

    • added the optional property given_name to the response with the 200 status

      response-optional-property-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog