-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2 login broken in QOpenScienceFramework #398
Comments
Thanks for reporting the issue @smathot and 👍 for the details. You are right about the cause of the failure.
I will link the fix here once it's up. |
After further look, I discovered the reason that we disabled the Maybe it's a better choice for the the library client to use the authorization code (https://oauth.net/2/grant-types/authorization-code/). In our implementation (which follows OAuth 2.0 specs), it is |
Thanks for the explanation. So basically this means you have switched to the PKCE grant flow? Do you have any documentation on the end points you have created to make this possible? |
Not yet, this is the second / future part of our OAuth server upgrade which is supported by the library we use. We will put a notification up for the change when it is ready but I don't think we will make it required.
I am working on writing a new documentation. As for the current one, the our API Doc points to the wrong place. for now you can take a look at this one. I will let you know when the new docs are up and the links are fixed later this week. One extra note, the scope delimiter is a |
Thanks for the information, so as far as I can tell there is one extra step involved in which you trade the code for a token, compared to the previous (our current) situation, in which we directly received the token after authorization. I will see if I can work around this. |
Apology for losing track of this! Have you been able to fix issue with the Authorization code flow? I found a better page that explains the differences between the three (i.e. implicit, code, code with PKCE). And more details for what problems PKCE solves for the following two types of app compared to code flow.
|
No, we haven't had time to dive into this yet! |
The QOpenScienceFramework python library, which is also used by OpenSesame to log into the OSF, has broken. I'm not sure what caused it to break (it used to work fine), but I suspect it's related to the redesigned OSF login window when logging in through OAuth2 (or at least breakage happened around the same time that the login window also changed in appearance).
When the login window is opened, the following URLs are called in rapid succession. The first is called by us, the others are redirected by the OSF itself.
At this point, a login window appears, as you would expect.
If I then enter my login credentials and actually try to log in, the following URL is called:
At this point, a window with the following error appears:
I initially thought that the issue was due to the redirect URL that we used. But I tried different ones, and they all give the same error.
See also #open-cogsci/QOpenScienceFramework#24
Ping @dschreij
The text was updated successfully, but these errors were encountered: