Open
Description
A better generic connector
Problem
Control generic connector behaviour from different responses of API webhook configured in connector
Solution
The generic connector API webhook behaves in a bit red/green fashion. "User is imported and login succeeds" or not.
It would be better to improve the behaviour like:
When API webhook returns response with
- user.verified: false, user.active: false -> Block the login and redirect the user to respective flow/screens
Alternatives/workarounds
write a webhook that listened to the user.create event, check to see which connector had created the user, and then deactivate the account using the user API