You can log the current user out of the application using OData by sending a POST request to the following URL:
<ACCESS_URL>/api/v1/SDXDEV/Intergraph.SPF.Server.API.Model.LogoutUser
This POST request must contain two parameters in the body portion of the request.
-
The HostName - The IP address of the current device.
-
The SessionID - The value found under the ingr.session_id claim of the token.
For OKTA sites the session id value is the sub value suffixed with -okta. For example, if the sub value was username, your session id would be username-okta.
-
You can extract the SessionID or Sub value from the token by either writing custom code to extract the SessionID claim value or by using a JWT decoding service, such as found at https://JWT.io.
-
If the server request is successful, the server responds with a HTTP 204 No Content status.