Skip to content

Commit

Permalink
Merge pull request #597 from scc-digitalhub/5.x-typo
Browse files Browse the repository at this point in the history
chore: typo in error message
  • Loading branch information
matteo-s authored Jun 25, 2024
2 parents 6fb54ff + 3f3045b commit f1412e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
if (!StringUtils.hasText(anchor) || !StringUtils.hasText(sub)) {
OAuth2Error oauth2Error = new OAuth2Error(
OAuth2ErrorCodes.INVALID_REQUEST,
"Missing required parameters [sub] or [trust_anchor]",
"Missing required parameters [sub] or [anchor]",
null
);
throw new OAuth2AuthenticationException(oauth2Error, oauth2Error.toString());
Expand Down Expand Up @@ -258,7 +258,7 @@ private String writeMetadata(
trustMarks.stream().map(t -> t.toJSONObject()).collect(Collectors.toList())
);
}

//add trust chain
if (trustChain != null) {
claims.claim("trust_chain", trustChain.toSerializedJWTs());
Expand Down

0 comments on commit f1412e3

Please sign in to comment.