Replace OpenSSL in oauth2client.crypt to work with PyCrypto

跟風遠走 提交于 2019-12-07 16:21:35

问题


Google App Engine supports PyCrypto, but does not support OpenSSL.

I want to use the oauth2client SignedJwtAssertionCredentials, which internally calls OpenSSL . Is there is a way to get oauth2client to work with PyCrypto.

I am assuming that it might be possible to create a local version of SignedJwtAssertionCredential equivalent by using PyCrypto instead ?

Also is there a way I can make a request to Google App Engine to provide a version that support the functionality for certificate/Assertions for server-to-server Oauth2.0 dance ?

Any pointers/help would be much appreciated.

Thanks.


回答1:


Found this link and this avoids any special handling to avoid ssl/etc.. This link has Google Data support for App Engine use.

I have not tried it yet - but once I use it, I will share feedback, if worthwhile for others.



来源:https://stackoverflow.com/questions/11432742/replace-openssl-in-oauth2client-crypt-to-work-with-pycrypto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!