From bb5172819f65156664a5a5753343efb2f5693ed5 Mon Sep 17 00:00:00 2001 From: gom1be Date: Thu, 7 Dec 2023 14:47:44 +0100 Subject: [PATCH] add scopes to the process --- build.gradle | 3 ++- .../adapter/controller/SecureTokenController.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 9abeb0eca..ab3d6e2f6 100644 --- a/build.gradle +++ b/build.gradle @@ -266,7 +266,8 @@ openApiGenerate { interfaceOnly: "true", requestMappingMode: "api_interface", useSpringBoot3: "true", - skipDefaultInterface: "true" + skipDefaultInterface: "true", + openApiNullable: "false", ]) } diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/adapter/controller/SecureTokenController.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/adapter/controller/SecureTokenController.java index c6f916e3e..c118cdb6d 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/adapter/controller/SecureTokenController.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/adapter/controller/SecureTokenController.java @@ -37,6 +37,11 @@ public ResponseEntity 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));