forked from Mirrors/oauth2
Update jira jwt subject per Atlassian's recent GDPR changes
This commit is contained in:
parent
0f29369cfe
commit
344bb6046c
|
@ -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(),
|
||||
|
|
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue