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

Basic Auth Force Broken #15

Open
Hudsonzp opened this issue Jun 17, 2018 · 2 comments
Open

Basic Auth Force Broken #15

Hudsonzp opened this issue Jun 17, 2018 · 2 comments

Comments

@Hudsonzp
Copy link

I've been using Basic Auth for some time, but it seems with the recent updates to browsers that this functionality no longer works. If you do a BASIC_AUTH_FORCE and try to secure your entire application, it constantly pops up the user/password box on any route that you go to. My guess would be that it's not storing the authorization header correctly anymore?

If I use @required that seems to work fine, but anything beyond that breaks. In my application I do config from object, but I don't think that's what's causing the bug?

@Hudsonzp
Copy link
Author

I've also tried changes mentioned here to no effect. https://github.com/jpvanhal/flask-basicauth/pull/14/files

@vackosar
Copy link

It works for me. Any chance u forgot to execute BasicAuth code?

    app.config['BASIC_AUTH_USERNAME'] = 'user'
    app.config['BASIC_AUTH_PASSWORD'] = 'password'
    app.config['BASIC_AUTH_FORCE'] = True
    basic_auth = BasicAuth(app)

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