Package nl.b3p.tailormap.api.controller
Class UserController
- java.lang.Object
-
- nl.b3p.tailormap.api.controller.UserController
-
@RestController public class UserController extends Object
Provides user and login information
-
-
Constructor Summary
Constructors Constructor Description UserController(OIDCRepository oidcRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<LoginConfiguration>getSSOEndpoints()org.springframework.http.ResponseEntity<Serializable>getUser()Get user login information.
-
-
-
Constructor Detail
-
UserController
public UserController(OIDCRepository oidcRepository)
-
-
Method Detail
-
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()
-
-