Closed gabloe closed 1 month ago
Thanks for reporting it! I'll take a look today!
@gabloe Please, try the latest version: https://pypi.org/project/cadwyn/3.15.1/
Ping me once you get a chance to test it 🙏
Thanks @zmievsa! I tried it out, and that fixes the oauth issue, but now for some reason if I pass a lifespan to the constructor my Swagger page no longer loads.
With a lifespan I see only:
If I don't pass a lifespan everything works except my initialization code that I want to run during app startup obviously cannot run.
Found the reason for this bug. I'll fix it and add it to my testcases today.
@gabloe Fixed it in 3.15.2. Already released.
Thanks @zmievsa! I will try it out today
Confirmed that it is working now. Thanks @zmievsa for the quick fixes!
Describe the bug After migrating my API to Cadwyn my OpenAPI docs UI no longer has the oauth OpenAPI properties mapped to the authorization dialog.
My API uses authorization code grant for protecting all routes. I am passing the below kwargs to Cadwyn. I see that cadwyn passes these along to FastAPI, but nevertheless my Swagger UI with Cadwyn is missing the pre-filled oauth fields when attempting interactive authorization.
If I switch back to using FastAPI instead of Cadwyn without changing anything else the issue goes away.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect interactive authorization via the openapi docs endpoint works
Additional context I am using FastAPI-Azure-OAuth for route security https://intility.github.io/fastapi-azure-auth/