Zren / plasma-applet-eventcalendar

https://store.kde.org/p/998901/
469 stars 93 forks source link

Access blocked: KDE Event Calendar Widget’s request is invalid #331

Open cocoepiblas opened 2 years ago

cocoepiblas commented 2 years ago

Operating System: KDE neon 5.26 KDE Plasma Version: 5.26.0 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 Kernel Version: 5.15.0-52-generic (64-bit) Graphics Platform: X11 Event Calendar 76

When I want to synchronize with Google Calendar, the Google page tells me:

You can’t sign in because KDE Event Calendar Widget sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error If you are a developer of KDE Event Calendar Widget, see error details. Error 400: invalid_request

I used the command:

sudo systemctl restart sddm

It looked like it was going to work, but it took me to the previous message above.

I have Event Calendar v.72 installed on Manjaro and Google Calendar works fine, Can I use the Google Calendar code for Manjaro on Neon? Where can I find the Google Calendar Manjaro code?

poltpolt commented 2 years ago

I confirm the same error in Opnesuse and current version of widget downloaded from plasma widget browser

justinkellogg89 commented 2 years ago

Confirmed; same issue on Garuda. Reinstalled widget same result.

CAG2Mark commented 2 years ago

Looks like the authentication method being used before is now deprecated by Google and the following should be implemented instead: https://developers.google.com/identity/protocols/oauth2/native-app#redirect-uri_loopback

lays147 commented 2 years ago

Same problem.

image

adamth0mps0n commented 2 years ago

Same issue here with Garuda Linux.

mikhansd commented 2 years ago

image

"error details": image

"Learn more about this error": https://support.google.com/accounts/answer/12379384

It looks like Google started blocking OAuth flows in October 2022.

I had Event Calendar installed on a different machine before the requests were blocked, and Google Calendar still syncs on that calendar.

Both machines run Arch Linux.

ksgremes commented 2 years ago

To anyone that ends up here, I was able to circumvent this by using an old access token (from a configuration file in a previous installation I had in my disk), previously granted tokens should still work

The configuration is in: ~/.config/plasma-org.kde.plasma.desktop-appletsrc

In there you can search for "Google Calendar" and paste the token information. Then log out and back in image image

cocoepiblas commented 2 years ago

To anyone that ends up here, I was able to circumvent this by using an old access token (from a configuration file in a previous installation I had in my disk), previously granted tokens should still work

The configuration is in: ~/.config/plasma-org.kde.plasma.desktop-appletsrc

In there you can search for "Google Calendar" and paste the token information. Then log out and back in image image

Thanks for your help. In a previous installation I had in my disk with Manjaro, Event Calendar v.72 work with Google Calendar but this token does not appear. Event Calendar is not the last version and each version stores these data in a different way. What is your Event Calendar's version?

JackDinn commented 2 years ago

Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?

CAG2Mark commented 2 years ago

Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?

It's not trivial to fix. IIRC Google now requires clients like these to use a localhost server to retrieve the token.

Even if it were easy to fix, nobody has the obligation to fix it.

JackDinn commented 2 years ago

Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?

It's not trivial to fix. IIRC Google now requires clients like these to use a localhost server to retrieve the token.

Even if it were easy to fix, nobody has the obligation to fix it.

Ok, i understand. So what should KDE users use for a simple tray calendar that syncs with google ATM? (not including anything that uses Akonadi which i dont like or use).

cocoepiblas commented 2 years ago

Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?

It's not trivial to fix. IIRC Google now requires clients like these to use a localhost server to retrieve the token. Even if it were easy to fix, nobody has the obligation to fix it.

Ok, i understand. So what should KDE users use for a simple tray calendar that syncs with google ATM? (not including anything that uses Akonadi which i dont like or use).

What you ask could be useful, but in my case, what I would like to know should be something simple, and is where I locate the access token in my Manjaro, which has installed the EC v.72, to use it in my Neon EC v.76.

Angel-arruda commented 2 years ago

My newly Manjaro KDE Installation has only this snippet on that file :(
[Containments][76][Applets][102][Configuration][Google Calendar] calendarList=W10= tasklistList=W10=

Vigilaterr commented 2 years ago

To anyone that ends up here, I was able to circumvent this by using an old access token (from a configuration file in a previous installation I had in my disk), previously granted tokens should still work

The configuration is in: ~/.config/plasma-org.kde.plasma.desktop-appletsrc

In there you can search for "Google Calendar" and paste the token information. Then log out and back in image image

Thank you a lot! It's worked for me. Fresh installation have only few lines like calendar List=W10= tasklist List=W10= But old config file has tons of info that should be copied into new one.

mottasystem commented 2 years ago

To anyone that ends up here, I was able to circumvent this by using an old access token (from a configuration file in a previous installation I had in my disk), previously granted tokens should still work The configuration is in: ~/.config/plasma-org.kde.plasma.desktop-appletsrc In there you can search for "Google Calendar" and paste the token information. Then log out and back in image image

Thank you a lot! It's worked for me. Fresh installation have only few lines like calendar List=W10= tasklist List=W10= But old config file has tons of info that should be copied into new one.

Access tokens periodically expire and become invalid credentials for a related API request. - https://developers.google.com/identity/protocols/oauth2/native-app#redirect-uri_loopback

Linux-Alex commented 1 year ago

Please make a fix

ak1ra26 commented 1 year ago

Same problem. Please, make a fix.

etoven commented 1 year ago

Confirmed same issue I don't appear to have a backup of my token. This was one of my favorite tools also.

dwijonarko commented 1 year ago

It's happened to me on my fresh install this plugin.

sometimesabird commented 1 year ago

Still no fix, Garuda Linux

Sadi58 commented 1 year ago

This plasma applet has not been updated since May 2022, which means the developer is not able/willing to devote more time for this project. There's no point in repeating here that this problem has not been fixed; instead, we apparently need a fork that will be developed more actively, for instance, by some of the existing 34 contributors. I also suggest trimming it down to make it a bit easier to maintain, e.g. by excluding weather etc. for which there are already individual applets working very well, and keeping only Google Calendar integration plus displaying date and time in a customizable format.

Linuxmaker commented 1 year ago

Apart from the fact that the KDE applet is completely overloaded with information - I've already uninstalled it again - I'm looking for a reasonable way to easily enter Google calendar entries without a web browser on the Linux desktop (here Debian 11 with KDE Plasma). so that they also appear on smartphones. Is there a suitable software for Linux and KDE?

Sadi58 commented 1 year ago

@Linuxmaker This one maybe? https://apps.kde.org/kalendar/

Linuxmaker commented 1 year ago

@Linuxmaker This one maybe? https://apps.kde.org/kalendar/

Thanks for the URL

Quoteme commented 1 year ago

Here is a fix:

  1. git clone https://github.com/gaganpreet/plasma-applet-eventcalendar.git eventcalendar
  2. cd eventcalendar
  3. git checkout google-calendar-fix
  4. sh ./install

use sh ./uninstall for uninstallation.

etoven commented 12 months ago

This plasma applet has not been updated since May 2022, which means the developer is not able/willing to devote more time for this project. There's no point in repeating here that this problem has not been fixed; instead, we apparently need a fork that will be developed more actively, for instance, by some of the existing 34 contributors. I also suggest trimming it down to make it a bit easier to maintain, e.g. by excluding weather etc. for which there are already individual applets working very well, and keeping only Google Calendar integration plus displaying date and time in a customizable format.

I use the weather info next to the calendar to book appts. That would have been unfortunate for me to do away with it.

Sadi58 commented 12 months ago

I use the weather info next to the calendar to book appts. That would have been unfortunate for me to do away with it. @etoven Good point. If it can be maintained as it is, fine. My suggestion was just an idea to make it simpler to maintain by focusing on its main function. BTW I use a weather widget on both sides of the Event Calendar as shown below, but I don't have too many appointments as a retired person. ;-) Screenshot_2023-11-29_10-41-09

codemeleon commented 11 months ago

Here is a fix:

1. `git clone https://github.com/gaganpreet/plasma-applet-eventcalendar.git eventcalendar`

2. `cd eventcalendar`

3. `git checkout google-calendar-fix`

4. `sh ./install`

use sh ./uninstall for uninstallation.

I think it is still broken.

Sadi58 commented 11 months ago

@codemeleon Try this - after installing golang - I've been using it for a long time now: https://github.com/kanocz/plasma-applet-eventcalendar

And there's also this new update, which I haven't tried yet: https://github.com/ALikesToCode/plasma-applet-eventcalendar

codemeleon commented 11 months ago

@Sadi58, Thanks. I Noticed that allowing via Firefox fails. However, allowing through chromium based browser works.