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

Access control and session management #583

Open
pkarw opened this issue May 14, 2021 · 1 comment
Open

Access control and session management #583

pkarw opened this issue May 14, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@pkarw
Copy link
Collaborator

pkarw commented May 14, 2021

Is your feature request related to a problem? If yes, please describe the problem.

Related: #581

It would be great to have a way, similar to the way we manage the secrets to manage the sessions and scoping the accessible user data.

Reference

I like the idea of passing the request headers that are readable only to the resources.

Alternatively - the other option would be to add a hashing feature where a particular HTTP header contains a hash of the Ask program with some secret like sha1(code+secret) - the way JWT tokens works in order to prevent the mid-man (user) from changing the scripts authorized by the frontend developer. The hash then should be generated somehow on the frontend eg. by Webpack plugin, based on server authorization keys passed by the ENV in the compiling phase (to avoid sharing the server-side secret)

@pkarw pkarw added the enhancement New feature or request label May 14, 2021
@pkarw
Copy link
Collaborator Author

pkarw commented May 14, 2021

Related: #586

@czerwinskilukasz1 czerwinskilukasz1 added this to the v2.0 (draft) milestone May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants