Prompts the user for authorization using HTTP Basic Auth.
(user='user', passwd='passwd')
| 457 | |
| 458 | @app.route('/basic-auth/<user>/<passwd>') |
| 459 | def basic_auth(user='user', passwd='passwd'): |
| 460 | """Prompts the user for authorization using HTTP Basic Auth.""" |
| 461 | |
| 462 | if not check_basic_auth(user, passwd): |
| 463 | return status_code(401) |
| 464 | |
| 465 | return jsonify(authenticated=True, user=user) |
| 466 | |
| 467 | |
| 468 | @app.route('/hidden-basic-auth/<user>/<passwd>') |
nothing calls this directly
no test coverage detected
searching dependent graphs…