Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
Fixes#868
Allow to use coroutines with Aiohttp in security handlers.
- Move all function from connexion.operations.security to a class in connexion.security.SecurityHandlerFactory
- Specialize this class for AioHttp and Flask, and instantiate them in dedicated APIs
- AioHttp specialization now support coroutines
- pass_context_arg_name option is supported for security handlers
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