<@U04UQ68083H> is there any possibility to pass th...
# ory-copilot
f
@chilly-king-10285 is there any possibility to pass the referer during the registration process?
c
A message from kapa.ai
Based on the provided knowledge sources, there is no explicit mention of passing the referer during the registration process in Ory. However, Ory does provide a way to configure redirection URLs after registration. This means you can set up a specific URL to redirect to after the registration process is completed. Here is an example of how you can configure post-registration redirection:
Copy code
yaml selfservice:     default_browser_return_url: <https://end-up-here-per-default/>     flows:       registration:         after:           # overrides url.default_browser_return_url           default_browser_return_url: <https://this-is-overridden-by-password/>           password:             # overrides selfservice.registration.after.default_browser_return_url             default_browser_return_url: <https://end-up-here-after-registration-with-password/>
In this configuration,
default_browser_return_url
is the URL where the user will be redirected after the registration process. You can set this URL to be the referer URL if you want to redirect the user back to the page they came from. For more details, please refer to the [Ory documentation](https://www.ory.sh/docs/kratos/concepts/browser-redirect-flow-completion#post-registration-redirection).
f
@chilly-king-10285 maybe I can do something with transient payload?
c
A message from kapa.ai
Yes, you can use the
transient_payload
field to pass additional data during the registration process. The
transient_payload
is an object that is used to pass transient data along to any webhooks. This could potentially be used to pass the referer or any other additional data you need during the registration process. Here is an example of how it's used in the registration flow:
Copy code
json {   "traits": {     "description": "The identity's traits",     "type": "object"   },   "transient_payload": {     "description": "Transient data to pass along to any webhooks",     "type": "object"   } }
In this example,
transient_payload
is an object that can contain any data you want to pass along to webhooks during the registration process. Please note that the actual usage of
transient_payload
would depend on how you have configured your webhooks and what data they expect to receive. For more details, please refer to the [Ory API Reference](https://www.ory.sh/docs/reference/api).