From 88fc7a8385516f1520a985b0f3cbd0800f14f7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20L=C3=B6sing?= Date: Thu, 9 Jun 2022 08:31:49 +0200 Subject: [PATCH] correct dr_nw role mapping as there was a uppercase. --- .../authorization/AuthorizationController.java | 7 +++---- src/main/resources/application-authorization.yml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/ch/admin/bag/covidcertificate/authorization/AuthorizationController.java b/src/main/java/ch/admin/bag/covidcertificate/authorization/AuthorizationController.java index 2a4c05d2..72b7d372 100644 --- a/src/main/java/ch/admin/bag/covidcertificate/authorization/AuthorizationController.java +++ b/src/main/java/ch/admin/bag/covidcertificate/authorization/AuthorizationController.java @@ -4,7 +4,6 @@ import ch.admin.bag.covidcertificate.authorization.config.ServiceData; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; - import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; @@ -28,7 +27,7 @@ public class AuthorizationController { public Set getCurrent(@PathVariable String service, @RequestParam List roles) { log.info("Get current authorization: {} {}", kv("service", service), kv("roles", roles)); Set result = authorizationService.getCurrent(service, roles); - log.info("found: "+result); + log.info("found: " + result); return result; } @@ -36,7 +35,7 @@ public Set getCurrent(@PathVariable String service, @RequestParam List getRoleMapping() { log.info("authorization role-mapping"); List result = authorizationService.getRoleMapping(); - log.info("found: "+result); + log.info("found: " + result); return result; } } diff --git a/src/main/resources/application-authorization.yml b/src/main/resources/application-authorization.yml index 2bbc0254..9c810a01 100644 --- a/src/main/resources/application-authorization.yml +++ b/src/main/resources/application-authorization.yml @@ -170,7 +170,7 @@ roles: claim: "bag-cc-dr_ne" - intern: ${roles.id.dataroom.dr-nw} eiam: "9500.GGG-Covidcertificate.DR_NW" - claim: "bag-cc-dr_NW" + claim: "bag-cc-dr_nw" - intern: ${roles.id.dataroom.dr-ow} eiam: "9500.GGG-Covidcertificate.DR_OW" claim: "bag-cc-dr_ow"