MCPcopy
hub / github.com/hugapi/hug / basic_authentication

Function basic_authentication

examples/sqlalchemy_example/demo/authentication.py:8–13  ·  view source on GitHub ↗
(username, password, context: SqlalchemyContext)

Source from the content-addressed store, hash-verified

6
7@hug.authentication.basic
8def basic_authentication(username, password, context: SqlalchemyContext):
9 return context.db.query(
10 context.db.query(TestUser)
11 .filter(TestUser.username == username, TestUser.password == password)
12 .exists()
13 ).scalar()

Callers

nothing calls this directly

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected