You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,9 +92,11 @@ an `http.Client`. That client can then be passed into the `NewClient` function
92
92
93
93
For convenience, capability for basic and cookie-based authentication is included in the main library.
94
94
95
-
#### Basic auth example
95
+
#### Token (Jira on Atlassian Cloud)
96
96
97
-
A more thorough, [runnable example](examples/basicauth/main.go) is provided in the examples directory. **It's worth noting that using passwords in basic auth is now deprecated and will be removed.** Jira gives you the ability to [create tokens now.](https://confluence.atlassian.com/cloud/api-tokens-938839638.html)
97
+
Token-based authentication uses the basic authentication scheme, with a user-generated API token in place of a user's password. You can generate a token for your user [here](https://id.atlassian.com/manage-profile/security/api-tokens). Additional information about Atlassian Cloud API tokens can be found [here](https://confluence.atlassian.com/cloud/api-tokens-938839638.html).
98
+
99
+
A more thorough, [runnable example](examples/basicauth/main.go) is provided in the examples directory.
98
100
99
101
```go
100
102
funcmain() {
@@ -111,10 +113,11 @@ func main() {
111
113
}
112
114
```
113
115
114
-
#### Authenticate with session cookie [DEPRECATED]
116
+
#### Basic (self-hosted Jira)
115
117
116
-
Jira [deprecated this authentication method.](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/) It's not longer available for use.
118
+
Password-based API authentication works for self-hosted Jira **only**, and has been [deprecated for users of Atlassian Cloud](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/).
117
119
120
+
The above token authentication example may be used, substituting a user's password for a generated token.
0 commit comments