Support Questions

Find answers, ask questions, and share your expertise

rest api for logout from zeppelin

Hi

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:

https://192.168.0.2/owa/redir.aspx?C=28054dbf137f4a079826c3a372971604&URL=https%3a%2f%2fcommunity.ho...

i want know how logout from zeppelin by rest api and cli.

2 REPLIES 2

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

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)