Created 02-17-2019 11:52 AM
i use the bellow command for login zeppelin rest api:
curl -i --data 'userName=admin&password=mypassword' -X POST http://$ip:9995/api/login
but for logout i dont find any rest api.
for ambari i use the bellow link:
i want know how logout from zeppelin by rest api and cli.
Created 02-18-2019 10:28 AM
Hey @abbas mohammadnejad,
I tried the following command in my zeppelin server, it logged me out.
curl -i -X POST http://false:false@<ZEPPELIN_SERVER_WEBUI>:9995/api/login/logout
Please let me know if this helps you or not
Created 02-19-2019 11:27 AM
Hey @Akhil S Naik thank you som much.
when use this rest API i receive below response and not logged me out:
HTTP/1.1 302 Found
Date: Tuesday, February 19, 2019 2:49:23 PM IRST
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: authorization,Content-Type
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, HEAD, DELETE
X-FRAME-OPTIONS:
X-XSS-Protection: 1
Set-Cookie: JSESSIONID=b2c32d5a-26f6-40cd-9ac4-4d94e474015d; Path=/; HttpOnly
Location: http://$IP:9995/api/login;JSESSIONID=b2c32d5a-26f6-40cd-9ac4-4d94e474015d
Content-Length: 0
Server: Jetty(9.2.15.v20160210)