MCPcopy
hub / github.com/postmanlabs/httpbin / hidden_basic_auth

Function hidden_basic_auth

httpbin/core.py:469–474  ·  view source on GitHub ↗

Prompts the user for authorization using HTTP Basic Auth.

(user='user', passwd='passwd')

Source from the content-addressed store, hash-verified

467
468@app.route('/hidden-basic-auth/<user>/<passwd>')
469def hidden_basic_auth(user='user', passwd='passwd'):
470 """Prompts the user for authorization using HTTP Basic Auth."""
471
472 if not check_basic_auth(user, passwd):
473 return status_code(404)
474 return jsonify(authenticated=True, user=user)
475
476
477@app.route('/bearer')

Callers

nothing calls this directly

Calls 3

check_basic_authFunction · 0.85
status_codeFunction · 0.85
jsonifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…