[issue38201] Anotation problem at flask_httpauth package
Serkan
report at bugs.python.org
Tue Sep 17 12:26:00 EDT 2019
New submission from Serkan <geciciserkan at gmail.com>:
if I use @auth.login_required anotation before @app.route, it is not working. It must be used after @app.route anotation. (flask_httpauth )
Sample:#
from flask_httpauth import HTTPBasicAuth
auth = HTTPBasicAuth()
@auth.login_required
@app.route('/api/v1.0/Scoring', methods=['POST'])
def Scoring():
----------
components: Extension Modules
messages: 352649
nosy: Serkan Gecici
priority: normal
severity: normal
status: open
title: Anotation problem at flask_httpauth package
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38201>
_______________________________________
More information about the Python-bugs-list
mailing list