-
First Check
Commit to Help
Example Codefrom fastapi.security import OpenIdConnect
oidc = OpenIdConnect(openIdConnectUrl="http://localhost:8080/realms/tools/.well-known/openid-configuration")
app = FastAPI(swagger_ui_init_oauth = {"clientId": "docs",
"appName": "Doc Tools",
"usePkceWithAuthorizationCodeGrant": True,
"scopes": "openid profile",})
@app.get("/foo")
async def bar(token = Depends(oidc)):
return tokenDescriptionProblem
from keycloak logs: Upon request inspection in brower tools, no code is actually sent. ExpectedSwagger-ui supports this login flow, so I expect it to work in fastapi docs. Operating SystemWindows Operating System DetailsNo response FastAPI Version0.74.0 Python Version3.7.6 Additional Context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Here's a pull request with a fix #4602 |
Beta Was this translation helpful? Give feedback.
-
|
was fixed in version 0.80.0 |
Beta Was this translation helpful? Give feedback.

was fixed in version 0.80.0