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

simple_example_auth.py doesn't work properly #175

Open
viskey98 opened this issue Jul 20, 2018 · 3 comments
Open

simple_example_auth.py doesn't work properly #175

viskey98 opened this issue Jul 20, 2018 · 3 comments

Comments

@viskey98
Copy link

I tried running demo/simple_example_auth.py (without any changes). I accessed it through my web-browser, when I clicked Log_me_in it wouldn't login.
I still get the same output even after clicking login several times:

Hello, I'm Jack, I'm NOT logged in.

Log me in
Log me out

Check my permissions, when i'm logged in and logged out.
Can I listen?
Can I speak?

Which also makes /listen an unauthorized page.

@asvetlov
Copy link
Member

asvetlov commented Sep 6, 2018

Log me in link doesn't ask for login/password but emulates user login.
So everything works as expected.

Maybe a Basic Auth form with pre-defined user/pass is better, feel free to make a pull request

@rodkevich
Copy link

It will if you'll change "raise" to "return" for handlers: "handler_login_jack" and "handler_login_jack"

@Dreamsorcerer
Copy link
Member

That's an unrelated issue in aiohttp 3.7, certainly not related to an issue reported over 2 years ago.

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

4 participants