mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
clean comments
This commit is contained in:
@@ -594,16 +594,5 @@ def init_jinja(application):
|
|||||||
jinja_loader = jinja2.FileSystemLoader(template_folders)
|
jinja_loader = jinja2.FileSystemLoader(template_folders)
|
||||||
application.jinja_loader = jinja_loader
|
application.jinja_loader = jinja_loader
|
||||||
|
|
||||||
# class CustomBasicAuth(BasicAuth):
|
|
||||||
# """
|
|
||||||
# Description:
|
|
||||||
# Override BasicAuth to permit anonymous healthcheck at /_status?simple=true
|
|
||||||
# """
|
|
||||||
# def challenge(self):
|
|
||||||
# if "/_status" in request.url:
|
|
||||||
# if request.args.get('elb', None) or request.args.get('simple', None):
|
|
||||||
# return jsonify(status="ok"), 200
|
|
||||||
# return super(CustomBasicAuth, self).challenge()
|
|
||||||
|
|
||||||
def setup_basic_auth(application):
|
def setup_basic_auth(application):
|
||||||
application.basic_auth = CustomBasicAuth(application)
|
application.basic_auth = CustomBasicAuth(application)
|
||||||
|
|||||||
Reference in New Issue
Block a user