Skip to main content

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.


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


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.