Single sign-on

Add an SSO connection

Changed on

Add a single sign-on connection to the organization's identity provider for an email domain, over OIDC (issuer URL, client ID and secret; the endpoints come from the issuer's discovery document) or SAML (the identity provider's metadata, by URL or XML). The domain must then be verified with the returned DNS TXT record before anyone can log in through it. Requires the sso: ["manage"] permission (owners)

post/api/v1/organizations/{organizationId}/sso-connections

Request

  • Base URL
    https://app.easyscraper.com
  • URL
    https://app.easyscraper.com/api/v1/organizations/{organizationId}/sso-connections
  • Auth
    API key in cookie better-auth.session_token

Path parameters

organizationIdstring uuid required

Request body

providerIdstring required
domainstring required
issuerstring uri
clientIdstring
clientSecretstring
metadataUrlstring uri
metadataXmlstring

Response

OK

providerIdstring required
type'oidc' | 'saml' required
issuerstring required
domainstring required
domainVerifiedboolean required

Changes