# Google Calendar In node - redirect uri?

**URL:** <https://discourse.nodered.org/t/google-calendar-in-node-redirect-uri/46674>\
**Category:** General\
**Created:** [3 June 2021 22:12 UTC](https://discourse.nodered.org/t/google-calendar-in-node-redirect-uri/46674 "2021-06-03T22:12:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [3 June 2021 22:12 UTC](https://discourse.nodered.org/t/google-calendar-in-node-redirect-uri/46674/1 "2021-06-03T22:12:07Z")

</div>

The redirect uri in the Google credentials node is documented as " **http** ://node-red.example.com:1880/google-credentials/auth/callback". Does this need to be changed to https? I got an email from Google saying that the project will be removed if the uri is not compliant. The only thing that I could find on their website was that "http" redirect uri is not compliant and it needs to be https.

Thanks for your help.

UPDATE: I changed the uri on my Google developer site to https://. However, the authentication fails with "Error 400: redirect\_uri\_mismatch - The redirect URI in the request, [http://node-red.example.com:1880/google-credentials/auth/callback](http://node-red.example.com:1880/google-credentials/auth/callback), does not match the ones authorized for the OAuth client. ". Any chance that will be fixed or is there a workaround?

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [5 June 2021 16:35 UTC](https://discourse.nodered.org/t/google-calendar-in-node-redirect-uri/46674/2 "2021-06-05T16:35:13Z")

</div>

The workaround to this issue is to either move the status of the project back to "testing" or leave it in "testing". Once I did that, I was able to change the uri back to http://.

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [6 June 2021 14:03 UTC](https://discourse.nodered.org/t/google-calendar-in-node-redirect-uri/46674/3 "2021-06-06T14:03:23Z")

</div>

Unfortunately, this did not correct the issue. I cannot "re-authenicate" with Google. I have deleted the google credentials config and tried to recreate it but I get an error when Google tries to authenticate the callback .

 ![Screen Shot 2021-06-06 at 9.00.54 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/d/cdff0559598972ad39a6e6a94fa00ed6f30c2342.png)

I have made the hosts entry and when I type in [http://node-red.example.com:1880](http://node-red.example.com:1880), I do get the Node-RED UI.

**UPDATE:** I forgot that I had to do the URI authentication step from the computer that NR is running on. Once I did that (and the status of the project was "Testing"), everything worked.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 June 2021 14:04 UTC](https://discourse.nodered.org/t/google-calendar-in-node-redirect-uri/46674/4 "2021-06-20T14:04:01Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
