Hey there, you mentioned that deprecation when using username password (which I used for login), https://confluence.atlassian.com/cloud/deprecation-of-basic-authentication-with-passwords-for-jira-and-confluence-apis-972355348.html , however you did not specify how to login using new approach. Attaching token via headers does not work, https://confluence.atlassian.com/cloud/api-tokens-938839638.html is this a bug in Jira? Can you help ?
Thanks
Hey Ian!
The error in your screenshot seems to be indicating that you've put in a password rather than an API token into the password field.
Details about how to use API tokens with Atlassian Cloud are listed here. In short, you generate a new token from id.atlassian.com and use that in place of the password. The advantage to this is that you can have multiple tokens on your account (one per application) and they can be easily revoked! You should be able to simply drop the token into the password field for basic auth.
If you're still stuck after generating a token, let me know!
Cheers,
Daniel
Hey Daniel, since the docs says username and password is already deprecated and removed, it doesn't matter if you fill the password field with a passport or a token, both don't work.As mentioned earlier, I tried both traditional username/password/token approach and the Authorization header approach(attaching the Authorization header with the base64 encoded email:token),please see below
curl -D- \ -X POST \ -H "Authorization: Basic ZnJlZDpmcmVk" \ -H "Content-Type: application/json" \ "https://your-domain.atlassian.net/rest/auth/1session"
I am talking about user login . Using above approach works other rest endpoint except for login. Of course I need my user to login in my customer facing app before they are allowed to access their own data(e.g adding tickets, updating tickets, organizations, etc). Its been weeks and were stuck on this issue.To recap, my issue is a user login.How can be my user authenticated ?https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/. "https://your-domain.atlassian.net/rest/auth/1session" -<-<-<
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.