This is with respect to my previous post - https://www.googlecloudcommunity.com/gc/Integration-Services/Application-Integration-Conversion-from-curl-command-to-python/td-p/541145
Following up on the discussion in the post, I wanted to check if there is any provision to hit the API trigger of an Application Integration by using a google account configured in the backend (App Engine), without actually asking the user (of the app) to authenticate with their account (from the Google Authorization page)? Iād basically be having a firewall at the App Engine level to restrict usersā access to the app based on my use case.
I have tried setting the access_type to āofflineā (but its only helping me for preventing the reprompting, but not the prompt page) and providing the login_hint as shown below (Is it possible to hardcode a single google account in the login_hint and allow all end users to access the application Integration end points?)
Code Snippet for the above discussion:
authorization_url, state = flow.authorization_url(
access_type='offline',
**login_hint='my_mail_id'**,
include_granted_scopes='true')
Also, I was trying to get the auth token on local host by using the below snippet for testing purposes:
āauthorizationā: "Bearer " + os.popen(āgcloud auth print-access-tokenā).read().strip()
When I try to use the same logic on my deployed App engine application, Iām seeing the error that the gcloud command couldnāt be found on the deployed host. Is there a way for me to use the above logic to get the token for hitting the API trigger of my Integration flow?