Python Google OAuth2 – how to bypass https required error?

If your callback page is not https, you’ll get the “OAuth 2 MUST utilize https” error. To bypass it, use these code in your php:


import os
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment