diff --git a/authentik/blueprints/v1/importer.py b/authentik/blueprints/v1/importer.py index 6a59431cc..7ba2468f4 100644 --- a/authentik/blueprints/v1/importer.py +++ b/authentik/blueprints/v1/importer.py @@ -34,7 +34,7 @@ from authentik.core.models import ( Source, UserSourceConnection, ) -from authentik.flows.models import Stage +from authentik.flows.models import FlowToken, Stage from authentik.lib.models import SerializerModel from authentik.outposts.models import OutpostServiceConnection from authentik.policies.models import Policy, PolicyBindingModel @@ -60,6 +60,8 @@ def is_model_allowed(model: type[Model]) -> bool: PolicyBindingModel, # Classes that have other dependencies AuthenticatedSession, + # Classes which are only internally managed + FlowToken, ) return model not in excluded_models and issubclass(model, (SerializerModel, BaseMetaModel)) diff --git a/blueprints/schema.json b/blueprints/schema.json index cffe89179..02a7cfbd4 100644 --- a/blueprints/schema.json +++ b/blueprints/schema.json @@ -61,7 +61,6 @@ "authentik_events.notificationwebhookmapping", "authentik_flows.flow", "authentik_flows.flowstagebinding", - "authentik_flows.flowtoken", "authentik_outposts.dockerserviceconnection", "authentik_outposts.kubernetesserviceconnection", "authentik_outposts.outpost",