SSO Management Reference | PropelAuth BYO Documentation

SSO Management Reference

Create OIDC Client

Creates a new OIDC client configuration for SSO authentication. This allows your customers to authenticate users through their identity provider.

Arguments

Successful Response

Error Types

const auth = createClient({ url, integrationKey });

const result = await auth.sso.management.createOidcClient({
  idpInfoFromCustomer: {
    idpType: "Okta",
    clientId: "0oaulhbkt9YBiT3Pn697",
    clientSecret: "MHppDLafzd...",
    ssoDomain: "example.okta.com",
    usesPkce: true,
  },
  customerId: "106ce124-108...",
  redirectUrl: "https://app.example.com/authorization-code/callback",
  displayName: "Okta OIDC Client",
  additionalScopes: ["groups"],
  emailDomainAllowlist: ["example.com"],
  scimMatchingDefinition: {
    strategy: "OidcEmailUsernameToScimUsername"
  }
});

if (result.ok) {
  console.log("OIDC client created successfully");
  console.log(`Client ID: ${result.data.clientId}`);
} else {
  console.log(`Error: ${result.error}`);
}
client = create_client(url=url, integration_key=integration_key)

result = await client.sso.management.create_oidc_client(
    idp_info_from_customer=IdpInfoFromCustomerOkta(
        client_id="0oaulhbkt9YBiT3Pn697",
        client_secret="MHppDLafzd...",
        sso_domain="example.okta.com",
        uses_pkce=True,
    ),
    customer_id="106ce124-108...",
    redirect_url="https://app.example.com/authorization-code/callback",
    display_name="Okta OIDC Client",
    additional_scopes=["groups"],
    email_domain_allowlist=["example.com"],
    scim_matching_definition=ScimMatchingDefinition(
        strategy="OidcEmailUsernameToScimUsername"
    )
)
if is_ok(result):
    print("OIDC client created successfully")
    print(f"Client ID: {result.data.client_id}")
else:
    raise HTTPException(status_code=500, detail="Internal server error")

Fetch OIDC Client

Retrieves the configuration details of an existing OIDC client.

Arguments

Successful Response

Error Types

Patches and Deletions

Patch OIDC Client

Updates an existing OIDC client configuration. All fields are optional - only provide the fields you want to update.

Arguments

Successful Response

Error Types

Delete OIDC Client

Permanently deletes an OIDC client.

Arguments

Successful Response

Returns an empty response on success

Error Types

Configuring SSO Settings

You can configure SSO settings, such as allowed redirect origins, in the 'sso_config.jsonc' config file.

Arguments

{
    "post_login_redirect_origin_allowlist": [
        // "https://example.com",
    ],
}