diff --git a/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/src/main/java/org/odpi/openmetadata/userinterface/uichassis/springboot/api/AuthController.java b/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/src/main/java/org/odpi/openmetadata/userinterface/uichassis/springboot/api/AuthController.java index d6456a5e2d..f04702d3c3 100644 --- a/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/src/main/java/org/odpi/openmetadata/userinterface/uichassis/springboot/api/AuthController.java +++ b/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/src/main/java/org/odpi/openmetadata/userinterface/uichassis/springboot/api/AuthController.java @@ -24,14 +24,14 @@ public AuthController(TokenService tokenService, AuthenticationManager authentic this.authenticationManager = authenticationManager; } - @PostMapping("/api/token2") + @PostMapping("/api/token") public String token(@RequestBody LoginRequest userLogin) throws AuthenticationException { Authentication authentication = authenticationManager .authenticate(new UsernamePasswordAuthenticationToken(userLogin.username(), userLogin.password())); return tokenService.generateToken(authentication); } - @PostMapping("/api/token") + @PostMapping(value = "/api/token", params = {"username","password"}) public String token(@RequestParam String username, @RequestParam String password) throws AuthenticationException { Authentication authentication = authenticationManager .authenticate(new UsernamePasswordAuthenticationToken(username, password));