@@ -0,0 +1,622 @@
+package de.gruene.haustuer.user;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport org.springframework.security.core.Authentication;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0A@RestController%0A@RequestMapping(%22/me%22)%0Apublic class WhoAmIController %7B%0A%0A  @GetMapping%0A  public Map%3CString, String%3E whoAmI(Authentication authentication) %7B%0A    HashMap%3CString, String%3E response = new HashMap%3C%3E();%0A    response.put(%22principal%22, authentication.getName());%0A%0A    return response;%0A  %7D%0A%0A%7D%0A

Add /me for authentication