Overview
There are various Atlassian applications offer several authentication options used by Atlassian applications for remote API access. The following are those available and Below are the ones currently supported by the CLI at least on Command Line Interface (CLI) in the latest release levelsreleases.
Application | Basic Authentication | Session Authentication | OAuth and Related Tokens | Discussion |
---|---|---|---|---|
Jira |
Parameters
- user (user name)
- password
, Confluence Cloud | No longer available | No longer available | Atlassian Personal Access Tokens (also known as API Tokens) Parameters
|
|
Default with automatic login
- Let default support use automatic session authentication
- Only special case, advanced scripting should bother with using login action and saved sessions
Parameters
- user (user name or email)
- password
Parameters
- user (for login)
- password (for login)
- login (subsequent actions)
Default with automatic login
Atlassian Personal Access Tokens
Parameters
- user
- password (access token)
Recommendation:
- Use an access token
- Atlassian has deprecated use of Basic and Session authentication and is likely to remove support later in 2018
|
| |||
Jira Server | Parameters
| Parameters
Default with automatic login | Requires 8.14 or higher. Parameters
|
|
Personal Access Token Restrictions
| |
Confluence Server | Parameters
|
| Parameters
Default with automatic login |
Requires 7.9 or higher. Parameters |
|
Recommendation:
- Use an access token
- Atlassian has deprecated use of Basic and Session authentication and is likely to remove support later in 2018
Parameters
- user (user name)
- password
Personal Access Token Restrictions
| |||
Bitbucket Server | Parameters
| Parameters
|
Supported
Personal Access Token Restrictions
|
Bitbucket Cloud |
No longer available | App passwords parameters
|
Parameters
- token
Trello Token
Parameters
token
Access tokens (11.0 and higher) parameters
|
Bitbucket resource scoped access tokens - see Access Tokens for Bitbucket Cloud. These tokens have restricted capabilities, so should only be used for actions that can be achieved with the bounds of the specific restrictions otherwise the action will fail likely with an error like this. | |||
Slack | Parameters
|
|
Personal Access Tokens for Server and Data Center
Personal access tokens have some good advantages in specific cases, but there are also some severe restrictions:
Personal access tokens can be created in the UI by going to your profile - see Atlassian documentation on personal access tokens.
Restrictions
- Some server remote capabilities used in various CLI actions may not support access using personal access tokens - actions like
renderRequest
or actions that use similar support under the covers depending on action parameters used. In this case, you receive an error message such as:Client error: Action or capability not available when using token authentication. Use user and password parameters instead.
Sometimes, you can avoid restricted capabilities by adjusting the parameters you use on the action. Otherwise, you need to revert to the standard user and password support. - If secure administrator sessions (websudo) are turned on for your instance and you attempt a secure administration action, websudo permission errors occur. Turn off the websudo for your site or revert to the standard user and password support.