Commit 15d5a544 by Jan Hrabal

pp

parent 286bafe5
...@@ -216,5 +216,22 @@ public class AuthApiController { ...@@ -216,5 +216,22 @@ public class AuthApiController {
//TODO other auth types? //TODO other auth types?
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