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

Function check_basic_auth

httpbin/helpers.py:259–263  ·  view source on GitHub ↗

Checks user authentication using HTTP Basic Auth.

(user, passwd)

Source from the content-addressed store, hash-verified

257
258
259def check_basic_auth(user, passwd):
260 """Checks user authentication using HTTP Basic Auth."""
261
262 auth = request.authorization
263 return auth and auth.username == user and auth.password == passwd
264
265
266

Callers 2

basic_authFunction · 0.85
hidden_basic_authFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…