Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I get the cookie of the guest? #2508

Closed
phhcer opened this issue Dec 22, 2020 · 4 comments
Closed

Can I get the cookie of the guest? #2508

phhcer opened this issue Dec 22, 2020 · 4 comments
Labels
type:enhancement Requests for feature enhancements or new features

Comments

@phhcer
Copy link

phhcer commented Dec 22, 2020

I want to get the cookie like below to complete the authorization. Is there any plan to do this?
image

@phhcer phhcer added type:enhancement Requests for feature enhancements or new features status:needs-triage Has not been triaged by the Streamlit team labels Dec 22, 2020
@nthmost
Copy link
Contributor

nthmost commented Dec 23, 2020

Hi @phhcer -- While we don't currently have plans to specifically expose cookies through Streamlit, that's not to say we wouldn't ever do it! It would help us out a lot to understand more your use case(s).

Can you write a bit more about what you're trying to accomplish? Thanks!

@nthmost nthmost removed the status:needs-triage Has not been triaged by the Streamlit team label Dec 23, 2020
@phhcer
Copy link
Author

phhcer commented Feb 7, 2021

I want to use the st.experimental_get_query_params to build different pages with different query params.(Especially, it will be built in my company to accomplish some demo.)

And I need to control the permission of each pages to each visitor, I have built a permission system, but I can’t tell who the visitor is until I can get the cookie of the visitor.(due to my company has its own OA system so I need to get the cookie.)

In general, I want to get the cookie which contains some OA info, to accomplish the pages( different query ) permission control.

@schaumb
Copy link
Contributor

schaumb commented Mar 17, 2021

duplicate, or related: #861 ?

@jrieke
Copy link
Collaborator

jrieke commented Sep 23, 2022

Dupe of #861, closing.

@jrieke jrieke closed this as completed Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

4 participants