Class AuthController
java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.api.AuthController
-
Constructor Summary
ConstructorsConstructorDescriptionAuthController
(TokenService tokenService, org.springframework.security.authentication.AuthenticationManager authenticationManager) -
Method Summary
-
Constructor Details
-
AuthController
public AuthController(TokenService tokenService, org.springframework.security.authentication.AuthenticationManager authenticationManager)
-
-
Method Details
-
token
@PostMapping("/api/token") public String token(@RequestBody LoginRequest userLogin) throws org.springframework.security.core.AuthenticationException - Throws:
org.springframework.security.core.AuthenticationException
-
token
@PostMapping(value="/api/token", params={"username","password"}) public String token(@RequestParam String username, @RequestParam String password) throws org.springframework.security.core.AuthenticationException - Throws:
org.springframework.security.core.AuthenticationException
-