java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.api.AuthController

@RestController public class AuthController extends Object
  • 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