Open narayanpromax opened 3 years ago
I'm not quite sure of what you are trying to accomplish. If you want to send the OTP via SMS or some other mechanism, you can use the API as documented here: https://fusionauth.io/docs/v1/tech/guides/passwordless/#using-the-api-directly
Once you have followed step 1 in that section, you can deliver the code any way you want: "Deliver this code to the end user using whatever method you’d like", though if you want to send it via email FusionAuth has support for that.
I don't understand what you are trying to do that you'd need a webhook for. Can you please explain a bit further?
Need webhook for "Deliver this code to the end user using whatever method you’d like". Once code generated, webhook can be used to send that code to that user
Why can't you use the lambda or other mechanism to generate the code as outlined in the guide?
Are you trying to use the hosted login pages, but want to send the code via SMS or some other method?
Because you could build your own login page and when someone enters their password, send them the code via SMS, then complete the login flow once they've entered the code.
Ok can you show me link to use lambda to generate code?
I only find POST /api/passwordless/start
Generate you already do, we want to invoke lambda for sending using custom SMS Gateway
Hiya,
If you have a support contract, please open a support ticket here: https://account.fusionauth.io/account/support/
If you don't, I can't provide any sample code right now, but you should definitely check out the FusionAuth client libraries, which can provide easier access to the API: https://fusionauth.io/docs/v1/tech/client-libraries/
@narayandreamer
Need webhook for "Deliver this code to the end user using whatever method you’d like". Once code generated, webhook can be used to send that code to that user
We have some work in progress to extend our current MFA / Passwordless abilities. We may end up supporting generic transports for passwordless as part of this work. https://github.com/FusionAuth/fusionauth-issues/issues/960
Yes. That's what I'm looking for Thanks @robotdan Will keep on eye on this
(Put feature request title here)
Please add webhooks for passwordless API.
Problem
Currently we have webhook on user.login, user.create etc. But we don't have webhook for passwordless API. This results in running a backend service and call fusionauth from it.
For eg: I want to send OTP via custom SMS Gateway so i will send request to fusionauth server via backend and use that OTP to send to customer via custom code. This is not event driven.
Solution
If we make webhooks around passwordless API then we can use cloudflare workers or lambdas to call SMS gateway when event happens resulting in better architecture