Hi guys,
I'm trying to call jira api by rest template in my Java application, but its not working. The response code is 401: Basic authentication with passwords is deprecated.
idk But its work on postman. I tried both 2 cases:
-Using basic authen with username and password
-Add header
Any suggestion about this ?
Hi @Nguyễn Dương Li welcome on the community :).
You need to use access token as part of the basic auth. You can create it using this how-to article: https://confluence.atlassian.com/cloud/api-tokens-938839638.html
Let me know if it's working or not :)
@Martin Bayer _MoroSystems_ s_r_o__
sorry my mistake, I already use api_token, it works on postman but 401 when I call from my Java app.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.