Commit 15d5a544 by Jan Hrabal

pp

parent 286bafe5
...@@ -217,4 +217,21 @@ public class AuthApiController { ...@@ -217,4 +217,21 @@ public class AuthApiController {
return null; return null;
} }
/*
@GetMapping("/auth/terms")
public @ResponseBody AppUser user() {
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
if (auth instanceof AppUserAuthentication) {
return ((AppUserAuthentication) auth).getUser();
}
//TODO other auth types?
return null;
}
@GetMapping("/auth/privacy")
*/
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment