Scripts fail with "Basic authentication with passwords is deprecated."
I created an API key at https://admin.atlassian.com and used it in the python and bash scripts, along with my e-mail address, and both fail with the message "Basic authentication with passwords is deprecated."
Comments (6)
-
reporter -
Account Deactivated The bash scripts use the “old” REST API which used to work with basic authentication, but now only works with a logged in session. As far as I can tell, /rest/backup/ is not accessible with API tokens. Basically, we’re screwed.
-
- changed status to open
@Rudolf Byker :
As written in the script itself (e.g. https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/master/Jira-backup.sh) you need to provide an API TOKEN (the one mentioned in your second comment).
The API Key instead is used to authenticate the ORGANIZATION, USER MANAGEMENT and USER PROVISIONING REST API endpoints. For details see: https://developer.atlassian.com/cloud/admin/organization/about/
Bram: I am not sure where you got this information but it is wrong. I have actually wrote these script explicitly to be used with API Tokens (as mentioned in the scripts themselves. Have you read the code in there?)
-
- changed status to resolved
Closing since there's no issue here. The scripts are working fine assuming you provide a valid Atlassian Account id and the associated API Token.
For details see: * https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/ * https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/
-
- changed status to closed
-
- changed status to resolved
- Log in to comment
I also found https://id.atlassian.com/manage-profile/security/api-tokens . How does it differ? Why can I create API tokens in more than one place, and which is the correct one to use?