Package org.odpi.openmetadata.userauthn
Class LogoutController
java.lang.Object
org.odpi.openmetadata.userauthn.LogoutController
LogoutController provides the REST API to log out a user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionplatformLogout(jakarta.servlet.http.HttpServletRequest request) Remove details of the token.serverLogout(String serverName) Remove details of the token.
-
Constructor Details
-
LogoutController
public LogoutController()
-
-
Method Details
-
platformLogout
@DeleteMapping("/api/token/logout") public String platformLogout(jakarta.servlet.http.HttpServletRequest request) throws org.springframework.web.client.HttpClientErrorException Remove details of the token.- Parameters:
request- HTTP request- Throws:
org.springframework.web.client.HttpClientErrorException- problem with the request
-
serverLogout
@DeleteMapping("/servers/{serverName}/api/token/logout") public String serverLogout(@PathVariable String serverName) throws org.springframework.web.client.HttpClientErrorException Remove details of the token.- Parameters:
serverName- HTTP request- Throws:
org.springframework.web.client.HttpClientErrorException- problem with the request
-