B2BSSOClient
B2B SSO (Single Sign-On) authentication methods via SAML, OIDC, and external connections.
Properties
Functions
Authenticates an SSO token received via deeplink after the browser-based SSO flow completes, establishing a member session. Calls the POST /sdk/v1/b2b/sso/authenticate endpoint. Retrieves the PKCE code verifier stored during the start call, and automatically includes the intermediate session token if one is present.
Deletes the specified SSO connection from the organization. Calls the DELETE /sdk/v1/b2b/sso/{connection_id} endpoint. Requires an active session.
Returns all SSO connections (SAML, OIDC, and external) configured for the organization. Calls the GET /sdk/v1/b2b/sso endpoint. Requires an active session.
Initiates an SSO authentication flow by opening a browser to the SSO provider. Opens a browser session at https://{domain}/b2b/public/sso/start, then automatically exchanges the resulting token by calling POST /sdk/v1/b2b/sso/authenticate, establishing a member session on success.