Hi Team,
From Yesterday I'm facing authentication issue for rest api which was working well from last one year. I've used basic authentication with base64Credentials and when my program reaching on given line( HttpWebResponse response = request.GetResponse() as HttpWebResponse; ) throwing error for 401 unauthorized. Please help me regarding this issue. If its related to permission then where can make changes to see the result or if any other issue like any updates in rest API then mention it too.
Basic authentication with passwords and cookie-based authentication are now deprecated and disabled.
"The deprecation period for this functionality has ended. From June 3rd, 2019, we will be progressively disabling the usage of this authentication method" - https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/
You can use Basic Authentication with tokens instead of credentials.
we have the same problem since yesterday
We also face it from yesterday.
I am using tokens only.
Generated access token of Username:Password with following URL with basic method
https://www.base64encode.net/
It's insecure and disabled now. You have to create API token for your user as described here: https://confluence.atlassian.com/cloud/api-tokens-938839638.html.
I have created the api key then encoded it using base64 . Passed emailid:apikey.
Authorization : Basic <generated key>
Content-Type : application/json
Then also it is not working. Am i missing any steps
I also faced same problem , its resolved by simply changing the password to token :
public static JiraRestClient getClient(){if (instance == null){synchronized (JiraClientNg.class) {if (instance == null){instance = new AsynchronousJiraRestClientFactory().createWithBasicHttpAuthentication(URI.create("https://abcd.atlassian.net"),"username", "API_Token_Value"); } } }return instance;}
Hi everyone,
Hi have 3 questions, because the webservice is return the error "Basic auth with password is not allowed on this instance":
1) The api key must be created by the user that suppose invoke the webservice? 2) The api label must be equal to login that suppose use it? 3) After generate the api key, we must encode in base64 the set "login:api key" and use it as header webservice attribute: Authorization: previous encode base64 string
Thanks.
generating the API key is not possible in server version. can you confirm? looks like the above solution is applicable only for cloud.
I met the same error ,we useing Jira Data Center and try to call Jira API,I have tried the above solutions but doesn't work ,and turn out it doesn't aplicable to Jira Data Center. Please try to use
It looks like you're new here. Sign in or register to get started.