This appears to due to us using an outdated FastAPI dependency: I was able to reproduce the bug by: - `pip` installing `fastapi== 0.74.1` (version currently used in CTMS) and `uvicorn` - making a minimal FastAPI app: ```python from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World"} ``` - starting the app ``` uvicorn main:app ``` - navigating to `http://127.0.0.1:8000/docs?url=https://todayisnewpoc.surge.sh/auth2.yaml` After `pip` installing `fastapi== 0.79.0` though, the `url` param seems to be ignored and no authorization popup appears.
Bug 1783267 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
This appears to be caused us using an outdated version of FastAPI. I was able to reproduce the bug by: - `pip` installing `fastapi== 0.74.1` (version currently used in CTMS) and `uvicorn` - making a minimal FastAPI app: ```python from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World"} ``` - starting the app ``` uvicorn main:app ``` - navigating to `http://127.0.0.1:8000/docs?url=https://todayisnewpoc.surge.sh/auth2.yaml` After `pip` installing `fastapi== 0.79.0` though, the `url` param seems to be ignored and no authorization popup appears.
This appears to be caused by us using an outdated version of FastAPI. I was able to reproduce the bug by: - `pip` installing `fastapi== 0.74.1` (version currently used in CTMS) and `uvicorn` - making a minimal FastAPI app: ```python from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World"} ``` - starting the app ``` uvicorn main:app ``` - navigating to `http://127.0.0.1:8000/docs?url=https://todayisnewpoc.surge.sh/auth2.yaml` After `pip` installing `fastapi== 0.79.0` though, the `url` param seems to be ignored and no authorization popup appears.