Access blocked: KDE Event Calendar Widget’s request is invalid
Opened this issue · 30 comments
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?
I confirm the same error in Opnesuse and current version of widget downloaded from plasma widget browser
Confirmed; same issue on Garuda. Reinstalled widget same result.
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
Same issue here with Garuda Linux.
"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.
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
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
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?
Same has just happened to me. What is happening with this problem then? why is there no comment or fix after 2 weeks?
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.
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).
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.
My newly Manjaro KDE Installation has only this snippet on that file :(
[Containments][76][Applets][102][Configuration][Google Calendar]
calendarList=W10=
tasklistList=W10=
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
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.
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 imageThank 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
Please make a fix
Same problem. Please, make a fix.
Confirmed same issue
I don't appear to have a backup of my token. This was one of my favorite tools also.
It's happened to me on my fresh install this plugin.
Still no fix, Garuda Linux
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.
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?
@Linuxmaker This one maybe?
https://apps.kde.org/kalendar/
@Linuxmaker This one maybe? https://apps.kde.org/kalendar/
Thanks for the URL
Here is a fix:
git clone https://github.com/gaganpreet/plasma-applet-eventcalendar.git eventcalendar
cd eventcalendar
git checkout google-calendar-fix
sh ./install
use sh ./uninstall
for uninstallation.
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.
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. ;-)
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.
@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
@Sadi58, Thanks. I Noticed that allowing via Firefox fails. However, allowing through chromium based browser works.