Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jira/jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (js jwtSource) Token() (*oauth2.Token, error) {
exp := time.Duration(59) * time.Second
claimSet := &ClaimSet{
Issuer: fmt.Sprintf("urn:atlassian:connect:clientid:%s", js.conf.ClientID),
Subject: fmt.Sprintf("urn:atlassian:connect:userkey:%s", js.conf.Subject),
Subject: fmt.Sprintf("urn:atlassian:connect:useraccountid:%s", js.conf.Subject),
InstalledURL: js.conf.BaseURL,
AuthURL: js.conf.Endpoint.AuthURL,
IssuedAt: time.Now().Unix(),
Expand Down
8 changes: 4 additions & 4 deletions jira/jira_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestJWTFetch_JSONResponse(t *testing.T) {

conf := &Config{
BaseURL: "https://my.app.com",
Subject: "userkey",
Subject: "useraccountId",
Config: oauth2.Config{
ClientID: "super_secret_client_id",
ClientSecret: "super_shared_secret",
Expand Down Expand Up @@ -69,7 +69,7 @@ func TestJWTFetch_BadResponse(t *testing.T) {

conf := &Config{
BaseURL: "https://my.app.com",
Subject: "userkey",
Subject: "useraccountId",
Config: oauth2.Config{
ClientID: "super_secret_client_id",
ClientSecret: "super_shared_secret",
Expand Down Expand Up @@ -108,7 +108,7 @@ func TestJWTFetch_BadResponseType(t *testing.T) {

conf := &Config{
BaseURL: "https://my.app.com",
Subject: "userkey",
Subject: "useraccountId",
Config: oauth2.Config{
ClientID: "super_secret_client_id",
ClientSecret: "super_shared_secret",
Expand Down Expand Up @@ -145,7 +145,7 @@ func TestJWTFetch_Assertion(t *testing.T) {

conf := &Config{
BaseURL: "https://my.app.com",
Subject: "userkey",
Subject: "useraccountId",
Config: oauth2.Config{
ClientID: "super_secret_client_id",
ClientSecret: "super_shared_secret",
Expand Down