I have a container (FastAPI server) running in Google Cloud Shell (Locally in the cloud) for testing purposes. I have navigated to the desired port using Web preview in cloud shell and I see the container running on my browser.
I want to make requests to this server through postman. When I do that, I’m asked to authenticate. I have created an OAuth2.0 client in Google Cloud and managed to create an access token in Postman. I was thinking that should work when I use the generated access token as a Bearer Token in postman to access the server running in Cloud shell.
But I’m still getting authentication issues and can’t make requests to the server from postman.
I have followed these resources;
https://pnatraj.medium.com/google-cloud-api-with-postman-f4cf070e665f
How can I authenticate and make requests to a server running locally in Google Cloud shell through postman. Kindly help