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

JSM API - Oauth2 and service-to-service

Frederik Krogh January 15, 2023

Hi,

I am new to JSM and trying to do som sync and automation with Jira and our other systems.

It might be because I am trying out Atlassian Access but when I try to authenticate with the base64 API key, I get the error that basic auth is deprecated. Okay fair enough Oauth is better and more secure.

However the access code flow does not support service-to-service.

How have you guys tackled this? 

1 answer

1 accepted

1 vote
Answer accepted
Gideon Nolte _Jodocus_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2023

Hm, from what I know Basic Auth with Password is deprecated but Basic auth with an api key should still work, I usually get the deprecation message when there is an error in the header (specificly the b64 part or the keyword). Did you just provide the b64 API key or did you provide the b64ed email:apiKey string? I've also seen people use the Bearer keyword rather than the Basic keyword. In full you should have something along the lines of:

Authorization: Basic {b64(userEmail:apiKey)}

Hope this helps. Feel free to let me know if you run into any problems.

Greetings 
Gideon

Frederik Krogh January 16, 2023

You were absolutely right. I fu**ed up the header. Thanks! 

Gideon Nolte _Jodocus_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2023

No problem - been there done that and also saw way to many people throw the towel at this exact point. It's a common problem with an absolutely unhelpful error message.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events