Class UserInfoEndpoint


  • @FrameworkRestController
    public class UserInfoEndpoint
    extends Object
    Endpoint for retrieving information about the currently authenticated user
    Author:
    Jeff Fischer
    • Constructor Detail

      • UserInfoEndpoint

        public UserInfoEndpoint​(UserService<User> userService)
    • Method Detail

      • user

        @FrameworkGetMapping(value={"/user","/me"},
                             params="client_id")
        @PreAuthorize("isAuthenticated()")
        public User user​(@RequestParam("client_id")
                         String clientId,
                         Principal principal)