jqueiroz / lojban.io

A free and opensource platform for studying the artificial language Lojban.
https://lojban.io
BSD 3-Clause "New" or "Revised" License
81 stars 6 forks source link

Getting error when trying to sign in. #116

Open s-clerc opened 3 years ago

s-clerc commented 3 years ago

The error in getting is Decoding of user info failed. when I try signing in with google. I’ve tried signing in with incognito to no avail

s-clerc commented 3 years ago

With Microsoft it’s:


Happstack 7.5.1.3

Your file is not found
To try again is useless
It is just not here
jqueiroz commented 3 years ago

Oh, that is really unexpected. I tried to repro the issue, but haven't been able to yet.

Could you confirm what browser you are using? Do you have cookies enabled?

s-clerc commented 3 years ago

I'm using Safari on iPadOS. I do have cookies enabled, I'm able to sign in normally on other sites which use Google as third party login (not sure about Microsoft)

jqueiroz commented 3 years ago

I managed to repro the issue apparently, and I think I have an idea of what's happening. This errors happens for me, on Android, when I try to sign in from Google Chrome but, upon clicking on "sign in", get redirected to the PWA ("progressive web app") version of the website. After clicking on "sign in", I even get to see the lojban.io logo for a few seconds, indicating that I am indeed leaving the browser and going into a separate (pseudo-)app. But, if I sign in directly through the PWA, instead of signing in through the browser, then it works.

@s-clerc, have you tried the "add to your homescreen" functionality on Safari? Could you try doing so and then signing in directly via the (pseudo-)app, rather than via the browser? On Android, you could do that by clicking on the three dots then "Add to my homescreen".

s-clerc commented 3 years ago

Just tried that for Google; same result.

jqueiroz commented 3 years ago

Thank you! I will investigate some more and try to root cause this. At least I am able to repro the issue somehow, even if it is not quite under the same circumstances.

Meanwhile, please feel free to sign in (independently of external identity providers) using https://lojban.io/login. I made this functionality available today. It is not yet publicly accessible, because I still need to make some CSS changes (mostly fixing the layout for mobile), but it works as long as you visit the url directly.

sidtr0 commented 3 years ago

Hi there, I have similar errors with Google OAuth sign-in. I don't know if I am any help with this but I have two accounts here. They are visually different on the OAuth page like so: Difference in OAuth Page

I have the issue with only the first one in the list, the one which doesn't have my name written (for some reason, not sure why). When I click on it, sends me to a page with Decoding of user info failed. and on subsequent reload of the same page, I get Acquisition of oauth2 token failed. The login is successful with the second account, the one which has my name on it. I don't know what's causing the difference in appearance but it could also be causing this error? I am on Firefox on Windows 11.