Middleware to allow authorization using Keycloak and Django for django-rest-framework (DRF). This package should only be used in projects starting from scratch, since it overrides the users' management.
Currently KeycloakTestMixin overrides the setUp and tearDown functionality of TestCase to perform its user clean up. However, this approach is not very clear and can cause errors when not included in the correct order as a sub-class. Therefore, a more robust approach would be for the test class to call them explicitly in its own setUp and tearDown functions.
Currently
KeycloakTestMixin
overrides the setUp and tearDown functionality of TestCase to perform its user clean up. However, this approach is not very clear and can cause errors when not included in the correct order as a sub-class. Therefore, a more robust approach would be for the test class to call them explicitly in its own setUp and tearDown functions.