Skip to content

Provide access to RequestContext #669

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

Closed
Archmonger opened this issue Feb 15, 2022 · 1 comment · Fixed by #703
Closed

Provide access to RequestContext #669

Archmonger opened this issue Feb 15, 2022 · 1 comment · Fixed by #703
Labels
priority-2-moderate Should be resolved on a reasonable timeline. type-docs About changes and updates to documentation
Milestone

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Feb 15, 2022

Current Situation

Currently, only Django-IDOM has access to the current websocket's scope. However, this is very commonly needed within all web frameworks to provide access to things such as user attributes, login, and logout functionality.

See #594

Proposed Actions

Create a RequestContext to be used with the upcoming use_context hook.

Work Items

  • Create RequestContext on a per web-framework basis
  • Document this feature (Probably also want an example on user login/logout)
@Archmonger Archmonger added type: feature type-docs About changes and updates to documentation priority-2-moderate Should be resolved on a reasonable timeline. labels Feb 15, 2022
@Archmonger
Copy link
Contributor Author

I'm going to toss this into V1 since this is a fairly crucial feature for anyone embedding IDOM within a web framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-2-moderate Should be resolved on a reasonable timeline. type-docs About changes and updates to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants