Skip to content

Commit

Permalink
add scopes to the process
Browse files Browse the repository at this point in the history
  • Loading branch information
m-gora committed Dec 7, 2023
1 parent 13d3431 commit bb51728
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ openApiGenerate {
interfaceOnly: "true",
requestMappingMode: "api_interface",
useSpringBoot3: "true",
skipDefaultInterface: "true"
skipDefaultInterface: "true",
openApiNullable: "false",
])
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public ResponseEntity<StsTokenResponse> token(
throw new UnsupportedGrantTypeException("Selected GrantType is not supported.");
}

// Authentication is handled in {@link
// org.eclipse.tractusx.managedidentitywallets.adapter.controller.filter.ClientCredentialsFilter}
// and {@link
// org.eclipse.tractusx.managedidentitywallets.adapter.controller.filter.FilterConfig}

JWT jwt;
if (accessToken != null && !accessToken.isBlank()) {
jwt = tokenService.issueToken(new DID(clientId), new DID(audience), JWTParser.parse(accessToken));
Expand Down

0 comments on commit bb51728

Please sign in to comment.