Files
connexion/tests/fakeapi/auth.py
lynxknight fda2b18b38 AioHttpApi oauth middleware should catch all OAuth problems (#830)
Fixes #829

* aiohttp openapi basic auth testing

* let oauth_problem_middleware recognize all OAuth exceptions

* scope problem should return 403

* excepting two classes makes more sense than subclassing hacks
2019-01-14 08:44:54 +01:00

5 lines
141 B
Python

def fake_basic_auth(username, password, required_scopes=None):
if username == password:
return {'uid': username}
return None