简体   繁体   中英

Workarounds to get Google sign-in functioning with Python 2.6 and pyOpenSSL 0.10-2

I'm trying to get Google sign-in working using their Python API but the server I'm on ( 4UHosting ) has Python 2.6 and pyOpenSSL 0.10-2 (5-years old).

This means that the API's call to OpenSSL.crypto.verify() fails as it doesn't exist in this version.

I can't install these myself, even --self as they require compiler use which I don't have. The admins are reluctant to install any updates that are not vetted. They won't install pyOpenSSL or Python 2.7 locally just for me. I can't find documentation from pyOpenSSL 0.10-2 that would have an equivalent function to verify().

I'm looking for some suggestions as where to head from here.

Any suggestions would be greatly appreciated, Cyrille

A few ideas:

  1. You could directly make your API calls to the Google API Endpoints instead of using the Python client library, for example, the token info endpoint can be used to verify tokens
  2. You could do sign-in operations client-side and transfer data to your server once a session is attached
  3. You could use another language (eg Ruby ) for the sign-in operations

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM