I need help with connecting to JIRA through my Google account using Python. My company uses Google SSO for JIRA access and I want to automate some tasks with a Python script.
I have been trying to use the jira-python package but I am stuck on the authentication part. When I try the standard username and password method, it does not work because my JIRA account is linked to my Gmail account.
This approach fails because JIRA expects OAuth or some other authentication method for Google-linked accounts. Has anyone successfully implemented Google authentication for JIRA API access? What is the correct way to handle this authentication flow?
yeah, same thing happened to me last month. I got it working by using OAuth2 through google’s api client library first, then passing that token to the jira connection. it’s a bit more work but handles sso correctly. you’ll need to set up oauth credentials in google cloud console though.
Had this exact problem when we switched to Google SSO for JIRA last year. Here’s the thing - even with Google login, JIRA still sees your account as a regular Atlassian account behind the scenes. I fixed it by using a personal access token instead of API tokens. Go to your Atlassian account settings > Security and create a new PAT with the right JIRA scopes. Then just use your Google email with the PAT in basic_auth. This skips the SSO mess entirely but keeps things secure. Don’t forget to set expiration dates and rotate tokens based on your company’s security rules.
Connecting to JIRA via Google credentials directly is not possible as JIRA Cloud does not support it. Instead, you’ll need to use API tokens for authentication. To set this up, generate an API token from your Atlassian account settings and use your Google account email along with the generated token for the connection. Here’s a code snippet for reference: