py4web google oauth issue

26 views
Skip to first unread message

Eric

unread,
Feb 18, 2020, 10:25:15 AM2/18/20
to web2py-users
When trying to use oauth2 with google I received this error
Legacy People API has not been used in project XXXXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=XXXXXXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

That link to goggle just showed an error, and after some searching it seems the people api is not available for new oauth2 setups. 

Here are the changes I made for my setup that switches out the people api.

In addition, there is change for SSO._handle_callback to show errors such as what I received above and a way to force https for callback uris.

Eric

Reply all
Reply to author
Forward
0 new messages