Skip to content

Commit

Permalink
Merge pull request #243 from pdowler/master
Browse files Browse the repository at this point in the history
bug fix: TokenValidator not keeping all bearer token principals
  • Loading branch information
pdowler authored Feb 21, 2024
2 parents a86a5fb + 0c29403 commit fd3af59
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 fd3af59

Please sign in to comment.