FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
88 stars 12 forks source link

Add Tenant and Application to Self-Service Registration Validation Lambda #2850

Open tneylan1 opened 2 weeks ago

tneylan1 commented 2 weeks ago

Add Tenant and Application to Self-Service Registration Validation Lambda

Problem

We are attempting to validate a new user registration using the "Self-service registration validation" lambda, which makes a call into our own API. The API needs to know what tenant and application the user is registering for, and additional information from the tenant (like an API key). The current parameters to the validation lambda to not support this. ApplicationId is a property of the registration parameter, but never has a value. And tenant is not accessible at all.

Solution

We would like tenant and application to be added to the "Self-service registration validation" lambda's parameters. All of the properties of these objects should be available, including "data". They can be separate parameters, or properties of "context".

Alternatives/workarounds

The only alternative that we see is to have a separate validation lambda for each tenant/application combination, with all of the properties that we need hard-coded, including our API key. Our implementation requires a separate Tenant for each of our customers, thus, we’ll have 400-500 Tenants which isn’t a very maintainable workaround for us.

Additional context

N/A

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

How to vote

Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.

mooreds commented 2 weeks ago

Hmmm. Confirmed that we don't have the application Id in the registration object, probably because it is not yet saved while the lambda isn't executing.