firebase-admin-python icon indicating copy to clipboard operation
firebase-admin-python copied to clipboard

FR: add sendEmailVerification, sendPasswordResetEmail, sendSignInLink, etc.

Open crunk1 opened this issue 7 years ago • 16 comments

Environment

  • Operating System version: OSX 10.13.3 and Debian 9
  • Firebase SDK version: firebase-tools -V shows 3.18.4
  • Library version: 2.10.0
  • Firebase Product: auth

Hey all, I would like my server to be able to trigger/send those various email authentication links.

See related: https://github.com/firebase/firebase-admin-node/issues/46

crunk1 avatar May 11 '18 16:05 crunk1

Also related: https://github.com/firebase/firebase-admin-node/issues/241

crunk1 avatar May 11 '18 16:05 crunk1

Anyone know if there are plans to implement email actions?

swaterfall avatar Feb 14 '19 11:02 swaterfall

Email action links API was implemented in #258

hiranya911 avatar Feb 14 '19 19:02 hiranya911

@hiranya911 Question - are the 'send' going to be implemented soon? Those only seem to generate links. Or am I off?

EuclidHeron avatar Mar 05 '19 04:03 EuclidHeron

These APIs are only for generating links. We don't have plans in the short term to send customized emails from the Admin SDK.

bojeil-google avatar Mar 05 '19 04:03 bojeil-google

@bojeil-google What about a default email? Is there a way to send an email (I do not care about customization) directly?

EuclidHeron avatar Mar 05 '19 04:03 EuclidHeron

There are no plans for that as you can already do it with the client SDK. The Node.js client SDK can do that. The value here is in adding the capability to build customized emails which is not possible in our client SDKs. A lot of developers want this capability which is now possible through these new APIs. Ideally it would be great if we can send the customized emails for the developer too but we are not there yet.

bojeil-google avatar Mar 05 '19 04:03 bojeil-google

BTW, the REST API is documented here: https://firebase.google.com/docs/reference/rest/auth/#section-send-password-reset-email

bojeil-google avatar Mar 05 '19 04:03 bojeil-google

Thank you very much @bojeil-google . So we would just need to make a REST API call from Python? For example using 'http://docs.python-requests.org/en/master/' or urllib.request ?

EuclidHeron avatar Mar 05 '19 04:03 EuclidHeron

It's up to you.

bojeil-google avatar Mar 05 '19 04:03 bojeil-google

Is this still relevant? I'm happy to work on this if it is.

naclcaleb avatar Nov 19 '19 19:11 naclcaleb

I made an initial PR: #368

naclcaleb avatar Nov 19 '19 21:11 naclcaleb

Thanks for looking into this Caleb. I've assigned your PR to one of our Auth team members. Stay tuned for an update.

hiranya911 avatar Nov 19 '19 21:11 hiranya911

Any updates?

shahargl avatar May 23 '21 09:05 shahargl

This is pretty bizarre that it's not in the official API.

maccman avatar Sep 23 '21 20:09 maccman