hundreds-psychiatrist-38730
02/19/2025, 7:29 PMearly-magician-18981
02/19/2025, 7:47 PMhundreds-psychiatrist-38730
02/19/2025, 7:59 PMAPI Authentication in my backend to be able to use it with hooks.
or am i wrong about that? 🤔hundreds-psychiatrist-38730
02/19/2025, 8:00 PMearly-magician-18981
02/19/2025, 8:39 PMhundreds-psychiatrist-38730
02/19/2025, 9:07 PMearly-magician-18981
02/19/2025, 9:08 PMhundreds-psychiatrist-38730
02/19/2025, 9:13 PMAPI KEY in it?
based on https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks#request-authenticationhundreds-psychiatrist-38730
02/19/2025, 9:13 PMvalue be? 🤔early-magician-18981
02/19/2025, 9:26 PMcreateLoginFlowforBrowser api to get a new flowId which can be used with the submitLoginFlow which does not require a API Key. The submitLoginFlow will return the session and session_token which you can then pass the id using the getSession API on the backend to validate the session if needed.hundreds-psychiatrist-38730
02/19/2025, 9:26 PMhundreds-psychiatrist-38730
02/19/2025, 9:27 PM@ory/client-fetchearly-magician-18981
02/19/2025, 9:28 PMhundreds-psychiatrist-38730
02/19/2025, 9:28 PMafter registration hook or after login hookhundreds-psychiatrist-38730
02/19/2025, 9:29 PMhundreds-psychiatrist-38730
02/19/2025, 9:29 PMearly-magician-18981
02/19/2025, 9:29 PMhundreds-psychiatrist-38730
02/19/2025, 9:30 PMearly-magician-18981
02/19/2025, 9:30 PMhundreds-psychiatrist-38730
02/19/2025, 9:30 PMhook: web_hook
# other configuration keys
config:
auth:
type: api_key
config:
name: Authorization
value: { API Key value }
in: header # alternatively "cookie"
is the kratos.yml config.. right?early-magician-18981
02/19/2025, 9:30 PMhundreds-psychiatrist-38730
02/19/2025, 9:30 PMhundreds-psychiatrist-38730
02/19/2025, 9:31 PMvaluehundreds-psychiatrist-38730
02/19/2025, 9:31 PMearly-magician-18981
02/19/2025, 9:31 PMhundreds-psychiatrist-38730
02/19/2025, 9:31 PMhundreds-psychiatrist-38730
02/19/2025, 9:31 PMhundreds-psychiatrist-38730
02/19/2025, 9:31 PMhundreds-psychiatrist-38730
02/19/2025, 9:31 PMearly-magician-18981
02/19/2025, 9:32 PMhundreds-psychiatrist-38730
02/19/2025, 9:32 PMhundreds-psychiatrist-38730
02/19/2025, 9:32 PMhundreds-psychiatrist-38730
02/19/2025, 9:32 PMearly-magician-18981
02/19/2025, 9:33 PMhundreds-psychiatrist-38730
02/19/2025, 9:33 PMhundreds-psychiatrist-38730
02/19/2025, 9:33 PMhundreds-psychiatrist-38730
02/19/2025, 9:34 PMearly-magician-18981
02/19/2025, 9:34 PMhundreds-psychiatrist-38730
02/19/2025, 9:36 PMhundreds-psychiatrist-38730
02/19/2025, 9:36 PMhundreds-psychiatrist-38730
02/22/2025, 10:09 PMlogin:
before:
hooks:
- hook: web_hook
after:
hooks:
- hook: web_hook
etc.
I just tried added in the example from the docs, failed validating kratos config.
i def was missing some options that is required. 🙂