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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

JIRA REST API Personal Access Token gives an error for authentication (Powershell)


Trying to move from Basic Auth (which works in our installation) to using a Personal Access Token (PAT) for a pair of Powershell scripts that do both a GET and a POST.  The GET used with the PAT returns a (400) Bad Request while the POST returns a (401) Unauthorized.  Both scripts work fine with Basic Auth.
I have seen where the 'Authentication" header duple (name/value pair) needs to look like this for the usage of the PAT ...
Name             Value
----                 -----

... where the value is the word Bearer followed by a space and then the full Base64 encoded string displayed with the PAT is created.

Any I missing something in that this method is not working for me? Literally the only change in the code is the value changing from the word Basic followed by the encoded creds to the word Bearer followed by the PAT string.

1 answer

You probably have solved this by now, but 'Authorization' must be follow by a colon, so:

curl -H 'Authorization: Bearer XXXXXXXXXXXXXXXXX' https://...

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events