Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass through complete POST body from custom user registration page into webhooks #2500

Closed
3 of 6 tasks
udyanrajsharma opened this issue Jun 2, 2022 · 4 comments
Closed
3 of 6 tasks
Assignees
Labels
feat New feature or request.

Comments

@udyanrajsharma
Copy link

Preflight checklist

Describe your problem

We are using ORY Kratos registration flow with our signup UI page having few additional fields like Organization Name and Resume other than identity registration fields of Name, Email and Password.
What we want is to call our signup service post successful registration in Kratos via webhook to save data in our DB, but we want those 2 fields (Organization Name and Resume) as well via form-data but it seems like webhook doesn't have any handle to complete data coming in from registration UI page rather only the fields which are used for identity registration.

Describe your ideal solution

There should be a way to pass additional data fields in registration flow and those fields should allow for a object stream type as well. And complete data-set should reach to webhook

Workarounds or alternatives

None found so far

Version

v0.9.0-alpha.3

Additional Context

No response

@CaptainStandby
Copy link
Contributor

@udyanrajsharma could you please elaborate on your specific use case and why you are unable to achieve your goal using a customized identity schema with the required data defined as traits? (https://www.ory.sh/docs/kratos/manage-identities/customize-identity-schema#advanced-schema)
The traits will be available via the post registration webhook (https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks#customizing-request-body-with-jsonnet)

@udyanrajsharma
Copy link
Author

Basically on app's signup page we want a file upload to be done. So our backend api (multi-part) takes in JSON and fileobject, and we want this api to be invoked as a hook after ORY kratos registration.

Is there a way to achieve this with current configuration, I am sorry but I couldn't find any such reference in advanced schema

@CaptainStandby
Copy link
Contributor

This seems to be way out of scope for an identity service.
What you could do alternatively would be to upload the file beforehand into an s3 bucket and pass the object ID as a trait when completing the signup.

@CaptainStandby
Copy link
Contributor

We are currently implementing #3102 which should help in solving more complex use cases.

Since passing the complete POST body is a security risk and uploading files through Kratos is problematic and not something we want to support, I'm closing this as won't fix.

Please take a look at #3102 once it's finished.

@CaptainStandby CaptainStandby closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants