nodebb-plugin-sso-google
nodebb-plugin-sso-google copied to clipboard
Using these credentials for sending email instead of app password?
Hey there, I was wondering if you happen to know how difficult it might be to adapt this method of authentication to the built in gmail sending functionality within NodeBB instead of using the current account login / app password method?
I have used this in the past with success through wordpress (https://wordpress.org/plugins/wp-mail-smtp/ which gives you these options seen here https://i.imgur.com/wCxGYDz.png) and I am not sure but I don't think the forum would make use of Wordpresses emailing functionality as opposed to it's own if just the authentication was linked.
The issues I am trying to work around are I use 2-factor auth and I have multiple domains hosted with gmail as I pay for the business service. I only have 1 login for those multiple domains, though, and since the login name has to be the same as the "from" name when using app passwords, it simply won't work right.
By enabling the appropriate APIs within separate projects within the admin/cloud panel and going through the process of creating an oauth consent, and a web application and generating a client id and secret (as described here for the aforementioned WP plugin I mentioned )I am able to send things out how I want/need, and seeming as this pretty much covers many of the steps or at least has similar functionality as far as the authentication, that is what made me wonder if it would be possible and how difficult it would be so I could somehow end up with result I am hoping for?
If you have any insight on if this sounds doable, and would not mind pointing me in the right direction, I would greatly appreciate it!
Thanks, -MH