PM4Py-WS Authentication and Session Management

PM4Py-WS Authentication and Session Management Services

(GET) /loginService

URI parameters:

user => the username of the user that is trying to log in

password => the password of the user that is trying to log in

Returns:

If the log-in is successful, a JSON containing the following fields:

sessionId => the ID of the session that the user can use to communicate with the server

status => the output of the login, that is OK

 

If the log-in is not successful, a JSON containing the following fields:

status => the output of the login, that is FAIL

 

(GET) /checkSessionService

URI parameters:

sessionId => the ID of the session that the user can use to communicate with the server

process => if provided, the name of the process that is being considered

Returns:

If the session id is valid and the process is specified, then a JSON containing the following fields:

session => the session ID the service was called with

status => status of the service (OK if the session is valid)

user => name of the user that belongs the session

is_admin => a boolean value that tells if the user is an administrator

can_upload => a boolean value that tells if the user can upload files to the system

log_visibility => tells if the user has visibility on the current log

can_download => a boolean value that tells if the user can download such log from the system

 

If the session id is valid but the process is not specified, then a JSON containing the following fields:

session => the session ID the service was called with

status => status of the service (OK if the session is valid)

user => name of the user that belongs the session

is_admin => a boolean value that tells if the user is an administrator

can_upload => a boolean value that tells if the user can upload files to the system

 

If the session id is NOT valid, then a JSON containing the following fields:

status => status of the service (FAIL)