Skip to content

Commit

Permalink
bug fix: TokenValidator not keeping all bearer token principals
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed Feb 20, 2024
1 parent 035ebb8 commit 0c29403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cadc-util/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sourceCompatibility = 1.8

group = 'org.opencadc'

version = '1.10.6'
version = '1.10.7'

description = 'OpenCADC core utility library'
def git_url = 'https://github.com/opencadc/core'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static Subject validateTokens(Subject subject) throws NotAuthenticatedExc

try {
SignedToken validatedToken = SignedToken.parse(credentials);
subject.getPrincipals().add(validatedToken.getUser());
subject.getPrincipals().addAll(validatedToken.getIdentityPrincipals());

AuthorizationToken authToken = new AuthorizationToken(
challengeType, credentials, validatedToken.getDomains(), validatedToken.getScope());
Expand Down

0 comments on commit 0c29403

Please sign in to comment.