Im trying to access a Google Apps script via CURL. The problem is that the current session is not sent along when requesting the script and requires me to log in again. How can I maintain the current session vars when making the CURL request?
cURL doesn't send along your browser's session information, as it's a different program. It's not possible to programmatically authenticate with an Apps Script web app.
Related
I've got a Google Apps Script attached to a Google Sheet that is triggered when a new entry comes in. I've also got a Google Cloud Run instance for a Flask app that I access through an end-point.
Currently it allows unauthenticated invocations but I want to only allow authenticated invocations. How do I go about doing this? I can't access the metadata server as its outside of GCP and the Calling From Outside GCP suggests following the Identity-Aware Proxy sample code however IAP does not work for Cloud Run...
Is there any simple way of doing this?
I am writing a Google Apps Script
I'd like to make an https call to an external server.
This server happens to be on GCP (Google Cloud Platform) and sitting
behind IAM.
In order to be able to authenticate with the server, I need to pass an Authorization Bearer header. My problem is, what do I pass as the Authorization Bearer?
From what I understand, I have 2 options that I've tried and failed at:
Use the default GSA appsdev-apps-dev-script-auth#system.gserviceaccount.com. and grant it IAM permissions (that didn't work).
Create a custom GSA, save the private token in the Apps Scripts Properties. However, how do I convert that token to a JWT so I can use it for the Authorization Bearer
Is there a way I can have a Python server send messages to a chrome extension, whether it be the content or background script?
I have a Python script making network requests that needs some cookies stored in my browser. I was trying to find a way to have the Python script send a message to the extension to refresh the page to get new cookies & send them back to the script.
From a small appliance, not capable of SSL, I would like to update data in a google spreadsheet. Using this script I can submit the data - but only using SSL (via the URL https://script.google.com/a/macros/...).
Is there any possibility to access the same published web app script, but without SSL?
No, SSL is always required to access a script.
Is there a way to restrict access to an application built on Google App Script using LDAP? Can Google App Script access LDAP?
There are a couple of ways to look at this problem.
Apps Script cannot directly access your LDAP system. Apps Script has ability make HTTP calls to REST/SOAP services, make JDBC calls to external databases but it doesn't have built in support for the LDAP directory.
However, if you are using Apps Script w/in a Google Apps domain then you can tie in Google user accounts to LDAP using Google Apps Directory Sync. Once this is setup, you can deploy your Apps Script to only allow people w/in your domain and Google will make them login before they can access the Apps Script.
Hope this helps.