code-specialist / fastapi-keycloak

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

required_roles param in get_current_user method. Add OR condition #69

Open twistfire92 opened 2 years ago

twistfire92 commented 2 years ago

At the moment we have not the ability to specify the presence of one of several roles. If I need check current user for role1 OR role2, I should use get_current_user without required_roles param and check this manually