-
Notifications
You must be signed in to change notification settings - Fork 29
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
[FEATURE REQUEST] add a webhook on the onbarding endpoint #261
Comments
Interested by this feature, for example to create an custom action when usernamespace is created |
This could be implemented without much effort but I'm wondering what the behaviour should be if a webhook is configured but fails to respond ? Also note that the events system currently in place (with output in the API logs) has a Discussions and opinions welcome :) |
Thank you for your attention :) In my case, the webhook is not mandatory webhook. We only need (for now) to create user's bucket with policies when a new user log in. In my opinion, if the webhook is down, it's ok for an admin reload the action manually (an api call for example). The last proposition is also very good, but we can adapt to your choices. |
Nice thanks! We need to get the user id when the event createNamespace is trigger, the Onyxia api can send it to the webhook? |
It's present in the event so it will be sent to the webhook (the data sent to the webhook are the exact same data that are currently output in thé logs) , see https://github.com/InseeFrLab/onyxia-api/blob/main/onyxia-api/src/main/java/fr/insee/onyxia/api/events/InitNamespaceEvent.java |
Perfect! |
We shoud handle to send webhook on the onboarding endpoint. It can an organisation to handle complexe onboarding on their own.
The text was updated successfully, but these errors were encountered: