Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
correct dr_nw role mapping as there was a uppercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldloesing committed Jun 9, 2022
1 parent c908cf3 commit 88fc7a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -28,23 +27,23 @@ public class AuthorizationController {
public Set<String> getCurrent(@PathVariable String service, @RequestParam List<String> roles) {
log.info("Get current authorization: {} {}", kv("service", service), kv("roles", roles));
Set<String> result = authorizationService.getCurrent(service, roles);
log.info("found: "+result);
log.info("found: " + result);
return result;
}

@GetMapping("/definition/{service}")
public ServiceData getDefinition(@PathVariable String service) {
log.info("authorization service={}", service);
ServiceData result = authorizationService.getDefinition(service);
log.info("found: "+result);
log.info("found: " + result);
return result;
}

@GetMapping("/role-mapping")
public List<RoleData> getRoleMapping() {
log.info("authorization role-mapping");
List<RoleData> result = authorizationService.getRoleMapping();
log.info("found: "+result);
log.info("found: " + result);
return result;
}
}
2 changes: 1 addition & 1 deletion src/main/resources/application-authorization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 88fc7a8

Please sign in to comment.