Class LogoutController

java.lang.Object
org.odpi.openmetadata.userauthn.LogoutController

@RestController public class LogoutController extends Object
LogoutController provides the REST API to log out a user.
  • Constructor Details

    • LogoutController

      public LogoutController()
  • Method Details

    • platformLogout

      @GetMapping("/api/token/logout") public void 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

      @GetMapping("/servers/{serverName}/api/token/logout") public void 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