Best answer

App Authorization using JSESSIONID cookie

  • 4 March 2020
  • 2 replies
  • 1698 views

Userlevel 1

Hi,


I am trying to connect to a REST API that only uses a cookie for authentication (JSESSIONID) has anyone had any success doing similar, either by creating an app or by using webhooks?


Cheers

Mark.


icon

Best answer by ikbelkirasan 4 March 2020, 15:56

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +12

Hi @squizzer

Yes, in a CLI app, you can use "session" authentication, then set up the username and password fields. When the authentication is performed, it should parse the cookie from the response headers and extract the JSESSIONID then return it so that Zapier stores it and makes it available in bundle.authData. Finally, when you send future requests to the API, make sure to include the JSESSIONID value in the request Cookie header.


Userlevel 1

Hi @ikbelkirasan I’d love to see the code you used to parse out the cookies -- proving tricky for me!