cURL
curl --request POST \ --url https://api.example.com/api/sso/orgs/{orgId}/config \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data ' { "provider": "azure_ad", "clientId": "<string>", "emailDomains": [ "<string>" ], "enabled": true, "clientSecret": "<string>", "tenantId": "<string>", "discoveryUrl": "<string>" } '
{ "id": "<string>", "organizationId": "<string>", "provider": "azure_ad", "clientId": "<string>", "discoveryUrl": "<string>", "emailDomains": [ "<string>" ], "enabled": true, "hasSecret": true, "createdAt": "<string>", "updatedAt": "<string>", "tenantId": "<string>" }
Upserts the OIDC provider configuration. All email domains must be verified first.
azure_ad
1
Default Response
Was this page helpful?