Skip to content

Commit

Permalink
Inherit expiry from original Service Identity Token
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Jul 8, 2024
1 parent 51c78ee commit 10e187b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connector/hsdp/extend_payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ func (c *HSDPConnector) ExtendPayload(scopes []string, payload []byte, cdata []b
}

// Service identities only support their managing org as the trusted org
// and token should expire when the service identity token expires
if cd.Introspect.IdentityType == "Service" {
trustedOrgID = cd.Introspect.Organizations.ManagingOrganization
originalClaims["exp"] = cd.Introspect.Expires
}

for _, scope := range scopes {
Expand Down

0 comments on commit 10e187b

Please sign in to comment.