I am working with py.drive, I found a good work around that will do for now. In the notebook, I created a variable with the credentials then saved the credentials to the nodes. But I had no problem doing this on databricks, but synapse notebooks not the best way to do it.
CREDENTIALS = '{"web":{"client_id":"xxxxxxx.....}'
SECRETS = '{"installed":{"client_id":"xxxxxxxx.....}}'
MYCREDS = '{"access_token": "xxxxxxxx....."_module": "oauth2client.client"}'
import json
creds = json.loads(CREDENTIALS)
with open('credentials.json', 'w') as outfile:
json.dump(creds, outfile)
secrets = json.loads(SECRETS)
with open('client_secrets.json', 'w') as outfile:
json.dump(secrets, outfile)
mycreds = json.loads(MYCREDS)
with open('mycreds.txt', 'w') as outfile:
json.dump(mycreds, outfile)
from there I was able to continue with authentication code and so on.