Hi Team,
I am using JIRA cloud system. and i want to use the public REST api in due automation furthers.
I am trying to login using the following endpoint:
POST https://awajieh.atlassian.net/rest/auth/1/session
BODY {"username":"my email", "password":"mypassword"}
Response
{ "errorMessages": [ "Login failed" ], "errors": {}}
What is the issue since i am login on web portal using the same information and i am able to login.
please verify
Hi @awajieh
Using passwords with Jira REST API basic authentication has been deprecated. You need to create API token and use it in the REST call.
Below document explains how to create and use API token for authentication.
https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/
Hi @awajieh ,
This endpoint was deprecated. Deprecation notice - Basic authentication with passwords and cookie-based authentication
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @edwin ,
So... How to do a HTTP authentication with Rest API?
What headers option should I include?
Content-Type: application/json;charset=UTF-8
Authorization: ???????
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Maycon Belfort ,
Please take a look at this documentation for more information.
For the username/password example, it would be best to pass in just the username and you'll be prompted to input a password.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.