-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
login
/ logout
functions
#204
Comments
Blocked on reactive-python/reactpy#1084 |
Reactpy is a dead project, so how can u do that ? |
My co-founder Ryan has largely been MIA for the last year, so I will need to take over development on core soon. In the next two weeks, I will be finalizing two more features in reactpy-router then shifting my focus to core. |
My undying admiration for your commit/ment. |
I'm leaning towards releasing a temporary solution to this problem. In an ideal world, we'd have a But due to being blocked on the @component
def example():
...
if needs_login:
return html.div( ... , login(UserObject) )
return html.div( ... ) |
I thought of a way to develop this in a hook-like fashion despite the lack of a This feature will be developed soon. |
Current Situation
The
login
function supplied by Django Channels provides non-persistent access to the Django session due to technical limitations.The reason is that WebSockets are unable to modify HTTP cookies. Unfortunately, HTTP cookies are required to persist Django login state changes.
Proposed Actions
This might need to be implemented as a
use_auth
hook.On a technical level, the following will need to be developed:
scope['session']
after a successful authentication.use_messenger
hook. Will likely be an AJAX HTTP POST request.The text was updated successfully, but these errors were encountered: