# Node-red login with google oauth2.0 help

**URL:** https://discourse.nodered.org/t/node-red-login-with-google-oauth2-0-help/82927
**Category:** General
**Created:** [16 November 2023 14:34 UTC](https://discourse.nodered.org/t/node-red-login-with-google-oauth2-0-help/82927 "2023-11-16T14:34:52Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [18 November 2023 10:02 UTC](https://discourse.nodered.org/t/node-red-login-with-google-oauth2-0-help/82927/5 "2023-11-18T10:02:53Z")

</div>

> [@Vevenus](#):
>
> Could not get google oauth 2.0 to work

There are a couple of solutions right here in the forum found by searching "passport-google-oauth20"

> [@Help needed for 2FA with Authy](https://discourse.nodered.org/t/help-needed-for-2fa-with-authy/62764/7):
>
> Ok, that is what I did. In my [Google console project dashboard](https://console.cloud.google.com/home/dashboard) I have first configured the OAuth consent screen. First step: User Type: external. Saved and moved to the next step. Selected my email from the menu, filled the Authorized domains and Developer contact information, saved and moved to the next step. Added the scopes. In the Manually add scopes field I wrote email. Saved and moved to the last step. …

> [@Google OAuth2 issues](https://discourse.nodered.org/t/google-oauth2-issues/3489/10):
>
> I managed to get something that seems to be working. adminAuth: { type:"strategy", strategy: { name: "google", label: 'Sign in with Google', icon:"fa-google", strategy: require("passport-google-oauth20").Strategy, options: { clientID: "myId", clientSecret: "mySecret", scope: "email", callbackURL: "http://my-node-url.com/auth/strategy/callback", verify: function(token, tokenSecret, profile…

---

_[View the full topic](https://discourse.nodered.org/t/node-red-login-with-google-oauth2-0-help/82927)._
