Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

java Rest api throws microsoftlogin page

sudeshacharya
August 5, 2020

Hello groups,

I was trying java rest api to connect to jira instance, and was passing username and password to createWithBasicHttpAuthentication method. But the call fails as the response contains the html page having title - _<title>Sign in to your account</title>_.

Any help on how to address this authentication issue ?

Kind Regards,

Sud

 

 

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 10, 2020

Hello, thanks for giving the Jira API a go!

Basic auth with Jira Cloud no longer uses passwords. There's an error page popping up (the 403 / sign into your account page) because the password used to log in to your Jira site isn't an accepted credential for the API. Instead, you'll need to create an API token.

Details about how to use these with Atlassian Cloud are listed here. In short, you generate a new token from id.atlassian.com and use that in place of a password. The advantage to this is that you can have multiple tokens on your account (one per application) and they can be easily revoked!

Cheers,
Daniel

Suggest an answer

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

Atlassian Community Events