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

Response types #35

Open yannicschroeer opened 2 years ago

yannicschroeer commented 2 years ago

What had been missed was corrected. It remains to solve the problem with the types when working with requests.

@GitBib What kind of problem are you referring to? Do you mean that we don't know about the data structure of responses?

Originally posted by @yannicschroeer in https://github.com/code-specialist/fastapi-keycloak/issues/34#issuecomment-1086641778

GitBib commented 2 years ago

Some methods have the Response type, like _admin_request, but where _admin_request is used another method is specified. It says: "Expected type 'KeycloakToken', got 'Response' instead".

yannicschroeer commented 2 years ago

Can you give an example? I couldn't find such an occurrence