appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Feature]: Support document.cookie

Open aswathkk opened this issue 3 years ago • 17 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Summary

It should be possible in Appsmith to access document.cookie variable.

Why should this be worked on?

Query from a Discord user:

We have a single sign on solution that sets a session-cookie (HttpOnly) on our domain. Using this cookie, it's possible to fetch an access token directly from client side JS. However, since all API requests are performed by the AppSmith backend and not by the client, I've been unable to find a way to execute an API requests that includes the session-cookie.

Related issue #12858

Front logo Front conversations

aswathkk avatar Apr 12 '22 12:04 aswathkk

Another user request: https://app.intercom.com/a/apps/y10e7138/inbox/inbox/conversation/164629100058404#part_id=comment-164629100058404-13282910472

aswathkk avatar Apr 12 '22 12:04 aswathkk

@trishaanand this should be supported via our SSO and JWT feature right?

Nikhil-Nandagopal avatar Apr 13 '22 06:04 Nikhil-Nandagopal

Just read the intercom conversation and this is indeed possible via our SSO feature

Nikhil-Nandagopal avatar Apr 13 '22 06:04 Nikhil-Nandagopal

@Nikhil-Nandagopal This is only possible in our SSO if it supports OIDC. Unfortunately, the user's SSO doesn't support OIDC

cc: @trishaanand

aswathkk avatar Apr 14 '22 08:04 aswathkk

+1 on this request

robeceiro avatar Feb 08 '23 20:02 robeceiro

+1 on this request

zkewal avatar Apr 12 '23 06:04 zkewal

+1 on this request

siddheshjungade007 avatar Aug 11 '23 10:08 siddheshjungade007

+1 on this request, needed for secured oauth flow

nirkons avatar Oct 05 '23 14:10 nirkons

+1 on this request

Erhao avatar Dec 04 '23 07:12 Erhao

@nirkons @Erhao would like to know your use case for supporting this feature

Nikhil-Nandagopal avatar Dec 11 '23 06:12 Nikhil-Nandagopal

@nirkons @Erhao would like to know your use case for supporting this feature

Hi, Same use case as the thread starter, Currently there's no way to securely store any information on client side, leading to a much less secure environment. But in general storing in cookie is pretty useful, off the top of my head it can be used to display data from authenticated iframes for example

nirkons avatar Dec 11 '23 07:12 nirkons

+1 on this request.

huynhminhtan avatar Feb 21 '24 07:02 huynhminhtan

+1 on this request.

lucs7 avatar Mar 05 '24 09:03 lucs7

+1 on this request.

mikim3 avatar May 19 '24 11:05 mikim3

+1 on this request

simonriiflux avatar Aug 23 '24 11:08 simonriiflux

+1 on this request!

gzarruk avatar Aug 28 '24 09:08 gzarruk

+1 on this request!

esciullo avatar Aug 28 '24 09:08 esciullo

+1 on this request!

We need to pass variables across different appsmith apps (especially user-related data).

acreacico avatar Sep 11 '24 05:09 acreacico

@acreacico you can pass data across apps via the query parameters when you navigate to the next application.

Nikhil-Nandagopal avatar Sep 12 '24 16:09 Nikhil-Nandagopal

Ran into this also, not sure why accessing client browser side stuff is so limited. This might be a deal breaker for me.

rjamesnw avatar Mar 01 '25 07:03 rjamesnw