mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-11 04:19:36 +00:00
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
5 lines
141 B
Python
5 lines
141 B
Python
def fake_basic_auth(username, password, required_scopes=None):
|
|
if username == password:
|
|
return {'uid': username}
|
|
return None
|