Yannic Schröer
Yannic Schröer
You should define a custom error handler in your FastAPI app for the KeycloakError that catches the error and returns the error message: ```python @app.exception_handler(KeycloakError) async def keycloak_exception_handler(request: Request, exc:...
Hey @fabiothz. Nice catch, this really shouldn't happen. Personally, I would expect an error to be thrown here. Something like a `UserNotFound` exception. This would be the most explicit and...
That's unfortunate. We are aware that this package currently only fully works with Keycloak v16. We're open to proposals on how to support multiple versions without blowing the whole thing...
Can you give an example? I couldn't find such an occurrence
Hey @albanlienart, I believe this inquiry is not related to this package. However, we have another package, that focuses on the described use case: [FastAPI Auth Middleware](https://github.com/code-specialist/fastapi-auth-middleware/). Check out https://fastapi-auth-middleware.code-specialist.com/examples/simple_with_scopes/...
Well, if you want to use custom roles, it is by definition not related to keycloak and thereby not this package. You can use your own roles by managing them...
Oh okay, sorry, seems I got you wrong after all. Your request is legit and will be considered for implementation, it indeed increases the flexibility. A pull request from your...
Hi @kaustuv-zb, Indeed we do not have any support for logouts yet. Regarding the explicitness of our docs; could you please provide specific information on what you're missing here? I...
Hi @vikyw89, We unfortunately didn't document this, thanks for pointing that out. The middleware takes a keyword argument called `excluded_urls` that expects a list of strings (relative paths)
We're open to pull requests but do not have the time to actively develop features