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

How to use djang-websocket integrated with a customer authentication mechansim #220

Open
aaaref opened this issue Feb 7, 2017 · 4 comments

Comments

@aaaref
Copy link

aaaref commented Feb 7, 2017

For many stupid reasons and mistakes in the past, we are not using django authentication, now, how should we be using django-websocket-redis without django authentication?

@jrief
Copy link
Owner

jrief commented Feb 7, 2017

If it's for the broadcast only, then go ahead with ws4redis as it is right now.

Otherwise, I strongly suggest to refactor your code to use Django authentication. Sooner or later you'll have to do it anyway.

@aaaref
Copy link
Author

aaaref commented Feb 7, 2017 via email

@jrief
Copy link
Owner

jrief commented Feb 7, 2017

Notify by sessionkey should work.

I would strongly suggest to store the session data in Redis as well, then you do not run into the risk of performing a blocking operation.

Remember: Green threads are only non-blocking, if monkey patched!

@aaaref
Copy link
Author

aaaref commented Feb 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants