code-specialist / fastapi-keycloak

Keycloak integration for Python FastAPI
https://fastapi-keycloak.code-specialist.com/
Apache License 2.0
193 stars 50 forks source link

Unable to authenticate users on swagger doc through the Authorize "OAuth2PasswordBearer" form #11

Closed germainlefebvre4 closed 2 years ago

germainlefebvre4 commented 2 years ago

Unable to connect with user (here test@test.fr) using the "Authorize" button and "OAuth2PasswordBearer" form. 2022-01-06 08_48_55-FastAPI - Swagger UI

A CORS error is achieved on non-https website. 2022-01-06 08_46_49-FastAPI - Swagger UI

I suggest adding the parameter on your documentation to allow testing the whole process on dev platform (that i the point of playing the quickstart guide).

Client> test-client : Fil lthe WebOrigins attribute to *.

2022-01-06 08_55_41-Keycloak Admin Console

yannicschroeer commented 2 years ago

Thanks for pointing this out! We will add your suggestion.

code-specialist commented 2 years ago

Has been added.