Ask AI is now on the home page — ask a question and get a sourced answer from the Ory docs. You'll also find it in the bottom-right corner of any page.

Skip to main content

Webhook Events

Ory Polis uses webhooks to notify your application any time changes are made to the connections. We'll notify you of the following 4 events for each connection.

Events

sso.created - New connection has been created.

{
"event": "sso.created",
"tenant": "ory",
"product": "demo",
"data": {
"name": "SSO Connection",
"description": "SSO Connection for Ory Corp",
"clientID": "326991705d478f0178fc2b49e35cd166dc771061",
"clientSecret": "15b2db91b2ba4c848b68148f108035e7138d69104d99de89",
"provider": "saml.example.com",
"friendlyProviderName": null
}
}

sso.deactivated - A connection has been deactivated.

{
"event": "sso.deactivated",
"tenant": "ory",
"product": "demo",
"data": {
"name": "SSO Connection",
"description": "SSO Connection for Ory",
"clientID": "326991705d478f0178fc2b49e35cd166dc771061",
"clientSecret": "15b2db91b2ba4c848b68148f108035e7138d69104d99de89",
"provider": "saml.example.com",
"friendlyProviderName": null
}
}

sso.activated - A connection has been activated.

{
"event": "sso.activated",
"tenant": "ory",
"product": "demo",
"data": {
"name": "SSO Connection",
"description": "SSO Connection for Ory",
"clientID": "326991705d478f0178fc2b49e35cd166dc771061",
"clientSecret": "15b2db91b2ba4c848b68148f108035e7138d69104d99de89",
"provider": "saml.example.com",
"friendlyProviderName": null
}
}

sso.deleted - A connection has been deleted.

{
"event": "sso.deleted",
"tenant": "ory",
"product": "demo",
"data": {
"name": "SSO Connection",
"description": "SSO Connection for Ory",
"clientID": "326991705d478f0178fc2b49e35cd166dc771061",
"clientSecret": "15b2db91b2ba4c848b68148f108035e7138d69104d99de89",
"provider": "saml.example.com",
"friendlyProviderName": null
}
}

Configure Webhook

To configure the webhook, you have to set the following environment variables.

  • WEBHOOK_URL - The URL to which the webhook events will be sent.
  • WEBHOOK_SECRET - The secret key used to sign the webhook events.