diff --git a/authentik/providers/proxy/migrations/0001_squashed_0014_proxy_v2.py b/authentik/providers/proxy/migrations/0001_squashed_0014_proxy_v2.py index 367a08b31..b4bb365ce 100644 --- a/authentik/providers/proxy/migrations/0001_squashed_0014_proxy_v2.py +++ b/authentik/providers/proxy/migrations/0001_squashed_0014_proxy_v2.py @@ -10,7 +10,8 @@ import authentik.providers.proxy.models def migrate_defaults(apps: Apps, schema_editor: BaseDatabaseSchemaEditor): - from authentik.providers.proxy.models import JWTAlgorithms, ProxyProvider + from authentik.providers.oauth2.models import JWTAlgorithms + from authentik.providers.proxy.models import ProxyProvider db_alias = schema_editor.connection.alias for provider in ProxyProvider.objects.using(db_alias).filter(jwt_alg=JWTAlgorithms.RS256): diff --git a/authentik/providers/proxy/migrations/0014_proxy_v2.py b/authentik/providers/proxy/migrations/0014_proxy_v2.py index f53c66b8f..3f31f8407 100644 --- a/authentik/providers/proxy/migrations/0014_proxy_v2.py +++ b/authentik/providers/proxy/migrations/0014_proxy_v2.py @@ -6,7 +6,8 @@ from django.db.backends.base.schema import BaseDatabaseSchemaEditor def migrate_defaults(apps: Apps, schema_editor: BaseDatabaseSchemaEditor): - from authentik.providers.proxy.models import JWTAlgorithms, ProxyProvider + from authentik.providers.oauth2.models import JWTAlgorithms + from authentik.providers.proxy.models import ProxyProvider db_alias = schema_editor.connection.alias for provider in ProxyProvider.objects.using(db_alias).filter(jwt_alg=JWTAlgorithms.RS256):