When I manually run a python script to connect to Jira I have no issues just passing my username and API token, however when I run via Cron I get an error stating
response text = Basic authentication with passwords is deprecated.
I have tried to encode the tuple of username and API token in base64, however this still doesn't seem to work. Has anyone gotten basic authentication to work to Jira Cloud via Cron?
Related
Currently I'm running Google Python SDK to automate the data collection of resources deployed in GCP. However, when parsing through the data, I often come across URLs (https://googleapis.com/compute/.....). In order to parse these, I'm currently using the access token obtained using the gcloud command: gcloud auth print-access-token.
I'm looking to automate this, as everytime the token expires, I use the gcloud command and manually replace the token in my python script.
Please assist.
Thank you
I am trying to connect to Google's Gmail API to fetch gmail data and interact with the service through jupyter notebook and Python using Visual Studio Code. I ran Google's quickstart.py, but I keep on running into this error:
Authorization Error
Error 400: redirect_uri_mismatch
You can't sign in to this app because it doesn't comply with Google's
OAuth 2.0 policy.; If you're the app developer, register the redirect
URI in the Google Cloud Console.
It gives me an URI each time, so I keep on adding the URI to the OAuth 2.0 but this error never seems to stop. I'm not sure what to put in here for the systems I am using (VS Code, Jupyter, and Python). I don't have an app running. I just want to do data science project with this data.
I spent many hours online trying to figure this out but none to avail... Please help me connect to Gmail! Again, I just want to download email data from Gmail and create labels to sort emails through Python.
Thanks for your help in advance!
Try to add the following to the redirect URIs section:
http://localhost
http://127.0.0.1
I would like to create a Python script to retrieve lists from Sharepoint Online and potentially update them. I can do all of this from the browser just fine. However, I'm having a hard time connecting to Sharepoint using the Requests module. When I navigate to https://mysharepoint.sharepoint.com, I get redirected to the https://login.microsoftonline.com to log in through my account. The login mechanism also requires two-factor authentication.
I'm not sure whether there's a way I could log in using Python at all at this point. Most of the packages I've tried have not been able to authenticate my user.
Can I use firebase with python to do user account creation and logging in and out?
or any other recommendations? I've read but seems like it only uses nodejs
There is an Admin SDK for Python for certain Firebase products, including Firebase Authentication.
The Admin SDK for Firebase is meant to run on servers and in other trusted environments. This means that a process using the Admin SDK has administrative access to all Firebase services. This for example allows you to easily create a new user account with the Python SDK.
But that also means that the Python SDK cannot be used to sign in with Firebase Authentication: after all, the process already runs with administrative privileges.
If you want to use the Python SDK to verify users, you should have the users sign in on the client with one of the regular Firebase Authentication SDKs. Then send the ID token from the client to your server, and use the Python SDK to verify that token.
I am trying to authenticate to jira by google sign-in using a python script . I am using jira python library.
I tried using basic_auth but it failed with error as my account is registered through gmail.
jira=JIRA(options,basic_auth=(values['USERNAME'],values['PASSWORD']));
When you first logged in as a Google user to the system, you would have been prompted to create an "OnDemand" password, used for things like Subversion or authenticated RSS feed access. This is the password you will need to use when using the JIRA API.
If you can't remember this password, please see: https://confluence.atlassian.com/display/AOD/Changing+Your+Password+in+Atlassian+OnDemand
Source