Login (deprecated)
This endpoint must be considered DEPRECATED from version 19.5.93345 (October 22, 2020) and replaced by another endpoint (→ Login).
For backward compatibility, you can still use it.
It returns the identifier of the session.
The session token is valid for 8 hours.
Response status
| HTTP status | Description |
|---|---|
| 200 | OK |
| 401 | Wrong credentials |
Response content-type
text/plain
Response entity
String representing the session.
Request
https://<OPTIMA_HOST_IP_ADDRESS>:<PORT_NUMBER>/optima-wsi/auth/login/?uname=alessandro&password=attanasi
Response status
200
Response output
736955457f1df56343561167a214d119
Request
https://<OPTIMA_HOST_IP_ADDRESS>:<PORT_NUMBER>/optima-wsi/auth/login/?uname=wrongname&password=attanasi
Response status
401
Response output
Is error: TRUE; Error message: Bad user/password combinationStacktrace hidden in plain/text content type
Request
https://<OPTIMA_HOST_IP_ADDRESS>:<PORT_NUMBER>/optima-wsi/auth/login/?uname=alessandro&password=WRONG
Response status
401
Response output
Is error: TRUE; Error message: Bad user/password - user:[alessandro]