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
Merge branch 'master' into issue-284-product-naming
* master:
fix(tests): Fix TestIssueService_PostAttachment unit test
style: Fix typos
style: Make code go fmt conform
chore(test): Remove unit testing log output for success cases (#293)
feat(project): Add GitHub Actions testing workflow (#289)
feat(context): Add support for context package
fix(issue): IssueService.Search() with a not empty JQL triggers 400 bad request (#292)
feat(IssueService): allow empty JQL (#268)
style: Fix staticcheck (static analysis) errors for this library (#283)
feat(project): Add workflow to greet new contributors (#288)
feat(project): Add cronjob to check for stale issues (#287)
feat(issues): Add GetEditMeta on issue
feat: Add Names support on Issue struct (#278)
issue-message: 'Hi! Thank you for taking the time to create your first issue! Really cool to see you here for the first time. Please give us a bit of time to review it.'
12
+
pr-message: 'Great! Thank you for taking the time to create your first pull request. It is always a pleasure to see people like you who spent time contributing. Please give us a bit of time to review it!'
Copy file name to clipboardExpand all lines: authentication.go
+42-21
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
package jira
2
2
3
3
import (
4
+
"context"
4
5
"encoding/json"
5
6
"fmt"
6
7
"io/ioutil"
@@ -47,7 +48,7 @@ type Session struct {
47
48
Cookies []*http.Cookie
48
49
}
49
50
50
-
// AcquireSessionCookie creates a new session for a user in Jira.
51
+
// AcquireSessionCookieWithContext creates a new session for a user in Jira.
51
52
// Once a session has been successfully created it can be used to access any of Jira's remote APIs and also the web UI by passing the appropriate HTTP Cookie header.
52
53
// The header will by automatically applied to every API request.
53
54
// Note that it is generally preferrable to use HTTP BASIC authentication with the REST API.
@@ -56,7 +57,7 @@ type Session struct {
56
57
// Jira API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session
0 commit comments