Skip to content

Commit 38e9aac

Browse files
remove sub from access token introspection (#3354)
1 parent c752c30 commit 38e9aac

File tree

6 files changed

+2
-46
lines changed

6 files changed

+2
-46
lines changed

auth/api/iam/api.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ func (r Wrapper) introspectAccessToken(input string) (*ExtendedTokenIntrospectio
410410
Iat: &iat,
411411
Exp: &exp,
412412
Iss: &token.Issuer,
413-
Sub: &token.Issuer,
414413
ClientId: &token.ClientId,
415414
Scope: &token.Scope,
416415
Vps: &token.VPToken,

auth/api/iam/api_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,6 @@ func TestWrapper_IntrospectAccessToken(t *testing.T) {
760760
Iat: to.Ptr(int(tNow.Unix())),
761761
Iss: to.Ptr("resource-owner"),
762762
Scope: to.Ptr("test"),
763-
Sub: to.Ptr("resource-owner"),
764763
Vps: &[]VerifiablePresentation{presentation},
765764
PresentationSubmissions: to.Ptr(presentationSubmissions),
766765
PresentationDefinitions: to.Ptr(presentationDefinitions),

auth/api/iam/generated.go

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/auth/v2.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,6 @@ components:
594594
type: string
595595
description: Contains the DID of the authorizer. Should be equal to 'sub'
596596
example: did:web:example.com:resource-owner
597-
sub:
598-
type: string
599-
description: Contains the DID of the resource owner
600-
example: did:web:example.com:resource-owner
601597
aud:
602598
type: string
603599
description: RFC7662 - Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT [RFC7519].

e2e-tests/browser/client/iam/generated.go

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e-tests/browser/openid4vp_employeecredential/main_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ func Test_UserAccessToken_EmployeeCredential(t *testing.T) {
8888
// Note to reviewer: audience is empty?
8989
require.Equal(t, "https://nodeB/oauth2/"+subjectRequester, *tokenInfo.ClientId)
9090
require.Equal(t, "https://nodeA/oauth2/"+subjectVerifier, *tokenInfo.Iss)
91-
// Note to reviewer: is "sub" right?
92-
require.Equal(t, "https://nodeA/oauth2/"+subjectVerifier, *tokenInfo.Sub)
9391
require.NotEmpty(t, tokenInfo.Exp)
9492
require.NotEmpty(t, tokenInfo.Iat)
9593
// Check the mapped input descriptor fields: for organization credential and employee credential

0 commit comments

Comments
 (0)