spring-boot-keycloak-tutorial
spring-boot-keycloak-tutorial copied to clipboard
Code in github does not match code in tutorial
The spring security code is left on feature branch. Looking at ProductAppApplication.java, in the tutorial,
@GetMapping(path = "/products")
public String getProducts(Principal principal, Model model){
model.addAttribute("principal",principal);
model.addAttribute("products", productService.getProducts());
return "products";
}
whereas in GitHub
@GetMapping(path = "/products")
public String getProducts(Model model){
model.addAttribute("products", Arrays.asList("iPad","iPhone","iPod"));
return "products";
}
So GitHub has not been updated?