You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parking, aq and zone API endpoints are all implemented as class-based views inheriting from auth.AuthenticateddAPIView(). This in turn inherits from the standard APIView() to enforce authn/authz and extends the initial() method to log the path, user and token name for each authentication. This way we can tell who is doing what with the API.
But the Transport API either uses function-based views with decorators to enforce authn/authz, or class-based views based on generics.ListAPIView and generics.RetrieveAPIView with assignments to authentication_classes, permission_classes, etc. This works fine, but we don't get the logging.
I can't immediately see how to adapt what we have to include logging. @abrahammartin do you have any ideas?
The text was updated successfully, but these errors were encountered:
The parking, aq and zone API endpoints are all implemented as class-based views inheriting from
auth.AuthenticateddAPIView()
. This in turn inherits from the standardAPIView()
to enforce authn/authz and extends theinitial()
method to log the path, user and token name for each authentication. This way we can tell who is doing what with the API.But the Transport API either uses function-based views with decorators to enforce authn/authz, or class-based views based on
generics.ListAPIView
andgenerics.RetrieveAPIView
with assignments to authentication_classes, permission_classes, etc. This works fine, but we don't get the logging.I can't immediately see how to adapt what we have to include logging. @abrahammartin do you have any ideas?
The text was updated successfully, but these errors were encountered: