Explain the difference between authentication_classes and permission_classes.
Last updated
authentication_classesidentify who is calling (token, session, JWT) and setrequest.user/request.auth. Failure just leaves the user anonymous.permission_classesrun afterward and decide if that identity may act, viahas_permission()/has_object_permission()(e.g.IsAuthenticated).Authentication failures typically return
401, while permission failures return403.