Credentials.json deprecated?

Hi,
My atlassian-connect dev environment stopped working today with the error
Failed to register with host https://admin:password@instance.atlassian.net (401)
Add-on not registered; no compatible hosts detected.

All I can think of is that logging in with user:password is no longer supported, but I didn’t find the documentation.
Any pointers?
Thanks
Jerry

1 Like

Hi @jerry.laster, basic auth has been deprecated for Jira and Confluence: https://confluence.atlassian.com/cloud/deprecation-of-basic-authentication-with-passwords-for-jira-and-confluence-apis-972355348.html
https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/

You will have to change how you authenticate in your test instance like moving using OAuth

1 Like

You need to use a API token in place of password. You can generate an API token in you Atlassian Account settings for the username (which by they way should be your email).

2 Likes

To generate an API Token: https://id.atlassian.com/manage/api-tokens

2 Likes

Thanks a lot @rwhitbeck, @rmassaioli, @biro
Just in case someone else comes checking for this, the only change needed to credentials.json on atlassian-connect express apps to connect to the dev environment is to change

        "username": "email used for installing the addon",
        "password": "API token"
5 Likes

Fantastic - fixed the issue for me. Thanks.

Excellent, fixed for me. Thanks.