Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Allow Personal Access Token authentication

I am using Jira Software 8.15 and I have create a PAT (Personal Access Token) and I am trying to authenticate using jira-python's basic_auth.

 

When I use the token I just created I get the following error:

Authentication Failure - Reason : AUTHENTICATED_FAILED

and when I look at the security logs:

<user> tried to login but they do not have USE permission or weren't found. Deleting remember me cookie

However!!

When I use username and password it all works as expected.

 

So, my question is is there any configuration that I need to change in order to make those PATs usable or is it the case that I can only use username:password to authenticate with Jira Server?

 

 

1 answer

0 votes
Prince Nyeche Community Leader Mar 09, 2021

Hi @Ventsislav 

With cookies you use username:password, what syntax do you use with PAT? 

I am using jira-python and more specifically:

JIRA(
    basic_auth=(
        validated_data['email'],
        validated_data['token']
    ),
    options={
        'server': url,
        'agile_rest_path': 'agile',
    },
    max_retries=0,
)

it works just fine with jira cloud, but when it comes to jira server it's not happy with the token - it only accepts password.

 

However, I managed to overcome this by installing this app

Like Prince Nyeche likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

106 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you