-
Notifications
You must be signed in to change notification settings - Fork 10
User Session Management
The request needs authentication. The session will be bound to the authenticating user. If successful a session id is returned.
curl -X PUT -u <user>:<password> "http://<server>:<port>/<app>/mvc/session/"
The request needs authentication. The session will be bound to the authenticating user. If successful a session id is returned.
curl -X PUT -u <user>:<password> "http://<server>:<port>/<app>/mvc/session/?expires=<ISO 8601 date>"
an example of ISO 8601 datetime is: 1994-11-05T13:15:30Z
The request does not need authentication. If successful user details data in json format is returned.
curl -X GET "http://<server>:<port>/<app>/mvc/session/user/<session_id>"
The request does not need authentication. If successful username text format is returned.
curl -X GET "http://<server>:<port>/<app>/mvc/session/username/<session_id>"
The request needs authentication. Only the user bound to the session or any user with the ROLE_ADMIN role can remove a session.
curl -X DELETE -u <user>:<password> "http://<server>:<port>/<app>/mvc/session/<session_id>"
The request needs authentication. Only a user with the ROLE_ADMIN role can remove all sessions.
curl -X DELETE -u <user>:<password> "http://<server>:<port>/<app>/mvc/session/"