Package org.tailormap.api.controller
Class UserController
java.lang.Object
org.tailormap.api.controller.UserController
Provides user and login information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<LoginConfiguration> org.springframework.http.ResponseEntity
<Serializable> getUser()
Get user login information.
-
Constructor Details
-
UserController
-
-
Method Details
-
getUser
@GetMapping(path="${tailormap-api.base-path}/user", produces="application/json") public org.springframework.http.ResponseEntity<Serializable> getUser()Get user login information.- Returns:
- isAuthenticated, username, roles
-
getLoginConfiguration
@GetMapping(path="${tailormap-api.base-path}/login/configuration", produces="application/json") public org.springframework.http.ResponseEntity<LoginConfiguration> getLoginConfiguration()
-