def METHOD_NAME(self, request, *args, **kwargs):
    uuid = kwargs.pop("uuid")
    self.realm = get_object_or_404(Realm, uuid=uuid, backend="saml")
    self.backend_instance = self.realm.backend_instance
    return super().METHOD_NAME(request, *args, **kwargs)