DATE:
AUTHOR:
Ory Team
Ory Network Ory Kratos

Customize password migration hook body

DATE:
AUTHOR: Ory Team

Ory now lets you customize the password migration hook request body using JSONNet, as with other webhooks. To use it:

  • Add your webhook URL in the configuration. See the web hook configuration guide for authentication options.

  • Use the body field to provide a JSONNet snippet that maps context fields to your request payload. In addition to the standard webhook context

  • If you omit body, Ory sends the default payload used by prior releases.

The available context is the same as for other webhooks plus the fields below.

{
  identifier: "user@example.com",
  password: "123456",
  // also available: "identity", "flow", "request_url", "request_headers", "request_cookies", "request_method"
}

See more details in the Ory Actions documentation.

These changes are now available in Ory Network and Ory Enterprise License Kratos and will be included in the next release of Ory Open Source.

Powered by LaunchNotes