Read the statement by Michael Teeuw here.
MMM-GoogleBirthdaysProvider
-
@Sebi76-0 it sounds like you use Firefox on another machine,
Most of these Auth implementations are required to be done on the same machine, you can’t run them over ssh -
Re: MMM-GoogleBirthdaysProvider
No i don’t on a another Machine, i local on my Raspi4.
mmm-googlebirthdaysprovider@0.2.0 token:generate
node ./google-api-credentials/generate-auth-token.jsAuthorize the app by visiting this url: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcontacts.readonly&response_type=code&client_id=xxxxxxxx-4hmsenjojbirtdvt47f00a0btomqlhbe.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost
Enter the code from that page here: -
@Sebi76-0 OK, the end of that url shows http://localhost
with no port number, implying port 80I don’t see the module doc talk setting callback uris on the Google page, oauthClient setup
Typically the code requesting the oauth callback has to say where it’s ‘server’ is listening. (And you have to hard code it in the Google setup) I don’t see that setup in his code either
-
npm run token:generate
I only followed what you see there
-
@Sebi76-0 I understand, but I think he left out some steps
There is an issue open on the module github page since 2023 about this