openblocks
openblocks copied to clipboard
[help/question] Use Google login to authorize Google REST API calls
I love the fact that one can now log in with a Google account on self-hosted instances.
My goal is to allow a user of an (OB) app to handle some stuff on their Google account (for example: list their Google Contacts).
I followed these steps:
- Created a Google Cloud Project
- Under Settings > ID Providers enabled Google and put in Client ID and Client secret from that Project
- Made a REST API datasource for a Google API call and put "OAuth 2.0(Inherit from login)" as Authentication Type, and selected "Forward all cookies"
- Made and run a query based on that datasource
I got this error:

Additional remark: When signing in to Openblocks using Google Sign In, the OAuth Consent Screen did not show any of the scopes I registered on the Google Cloud Console. Is this expected behaviour?
Is this something OB can't do? Am I doing something wrong?
Hi @SvV-CWinJS
- We apologize for the inconvenience that the authentication type OAuth 2.0(inherit from login) is not suitable for Google authentication now. However, we are planning to complete this feature maybe in the next two weekends. Please stay tuned.
- The Google consent screen will display the fields authorized for OB, such as your name and email address, but excluding scopes.
Hi lvhuichao
Thanks for your kind reply.
I'll stay tuned and wish you luck (and joy) with programming.