Package org.tailormap.api.controller
Class UserController
java.lang.Object
org.tailormap.api.controller.UserController
Provides user and login information
-
Constructor Summary
ConstructorDescriptionUserController
(OIDCRepository oidcRepository, UserRepository userRepository, GroupRepository groupRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<LoginConfiguration>
org.springframework.http.ResponseEntity<Serializable>
getUser()
Get user login information.
-
Constructor Details
-
UserController
public UserController(OIDCRepository oidcRepository, UserRepository userRepository, GroupRepository groupRepository)
-
-
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
-
getSSOEndpoints
@GetMapping(path="${tailormap-api.base-path}/login/configuration", produces="application/json") public org.springframework.http.ResponseEntity<LoginConfiguration> getSSOEndpoints()
-