def METHOD_NAME(self, client_id, code, client, request, *args, **kwargs):
    # Validate the code belongs to the client. Add associated scopes
    # and user to request.scopes and request.user.
    pass