-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Google OpenID Connect does not work #644
Comments
👍 |
i need the python script and password list On Fri, Jun 19, 2015 at 5:40 AM, Masahiro Wakame [email protected]
|
FWIW, I implemented a simple django project with Python Social Auth that demonstrates this behavior. https://github.com/dmiyakawa/psa_exp Maybe I'm not using the library, so pointing it out would be also helpful. |
👍 |
Any updates on this? Seems like OpenID has been phased out in favor of OpenID Connect. Hence support for OpenID Connect is imperative. |
+1 |
My progress with this issue thus far:
I have no idea where to even start fixing that. |
@unklphil I just implemented OpenIdConnect authorization for some proprietary platform today which also only used RS256 for signing JWTs. I had to do something like this in
I hope that helps. Maybe on note that got me at first because I wasn't too familiar with JWTs: The RS256 signing method uses asymmetrical signing, which means the Producer (Server) users a private key to sign the request and you (Consumer) have to use the public key to verify the signature (with jwt_decode). Google's Open ID Connect gives you a |
The related PRs were merged or ported to the new lib social-core. |
I saw #477 and #520 but I was not able to use Google OpenID Connect support. Is anyone at this moment?
When I tried yesterday, there seemed several weird problems found that are hard for me to fix or workaround.
1: nonce is being rejected by server
As @eshellman says at #477, AuthCanceled will be thrown, probably because Google's server sends HTTP 400. I inserted some debug statements and found JSON message from Google.
OpenIdConnectAuth class inserts the "nonce" parameter every time (auth_complete_params()), while I'm not sure if it is legitimate for the spec.
Maybe GoogleOpenIdConnect needs to revert the behavior. Possibly I'm just wrong with how to use python-social-auth.
2: RS256 is required while open_id.py is assuming HS256
open_id.py is assuming RS256 while the server is forcing HS256? It looks even after nonce is deleted (for debugging), jwt_decode() now fails itself.
This topic will be related to this issue too: #641
3: Lack of documentation.
Right now only the (possibly) useful information will be #520
No documentation seems in http://django-social-auth.readthedocs.org/en/latest/backends/google.html (at least right now) It does not mention "OpenID Connect" at all.
It will be very helpful if there are some explanations about how to get it work.
Thanks!
The text was updated successfully, but these errors were encountered: