- Use MiddlewareMixin to address Middleware object is not callable server error.
Keep an eye on when Django removes/replaces it.
- Not every request has the authentication header, remove the corresponding check and logout call.
- Remove the checking for auth_time in the ID token
- Add class name in the exception message string.