We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7d9fb7 + 7a112d8 commit ba8caa8Copy full SHA for ba8caa8
flask_simpleldap/__init__.py
@@ -431,7 +431,7 @@ def basic_auth_required(self, func):
431
432
def make_auth_required_response():
433
response = make_response("Unauthorized", 401)
434
- response.www_authenticate.set_basic(current_app.config["LDAP_REALM_NAME"])
+ response.headers['WWW-Authenticate'] = f'Basic realm="{current_app.config["LDAP_REALM_NAME"]}"'
435
return response
436
437
@wraps(func)
0 commit comments