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

[HTTPServer] Use of cookies for session / user IDs #108

Open
JonathanMace opened this issue Dec 5, 2023 · 0 comments
Open

[HTTPServer] Use of cookies for session / user IDs #108

JonathanMace opened this issue Dec 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@JonathanMace
Copy link
Contributor

This is a low priority feature request, since the use of cookies doesn't functionally affect Blueprint currently.

A typical pattern used by HTTP servers is to store a session ID / user ID for a logged in user in a cookie. The golang HTTP server API has the ability to easily do this.

However, in the workflow spec, there is nothing saying that a frontend server is going to be deployed over HTTP (by design). So, any API that wants a session ID / user ID should explicitly pass these as function arguments.

If we want to support using session IDs in cookies, then probably the best way to do it is in the HTTP plugin. When a wiring spec configures an HTTP server, it could optionally specify which func arguments should come from cookies vs. as actual arguments; likewise it could do the same with return values.

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

1 participant