MCPcopy Index your code
hub / github.com/python-websockets/websockets / check_credentials

Function check_credentials

experiments/authentication/app.py:162–164  ·  view source on GitHub ↗

Authenticate user with HTTP Basic Auth.

(username, password)

Source from the content-addressed store, hash-verified

160
161
162def check_credentials(username, password):
163 """Authenticate user with HTTP Basic Auth."""
164 return username == get_user(password)
165
166
167basic_auth = websockets_basic_auth(check_credentials=check_credentials)

Callers

nothing calls this directly

Calls 1

get_userFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…