diff --git a/authentik/sources/oauth/api/source_connection.py b/authentik/sources/oauth/api/source_connections.py similarity index 100% rename from authentik/sources/oauth/api/source_connection.py rename to authentik/sources/oauth/api/source_connections.py diff --git a/authentik/sources/oauth/api/source.py b/authentik/sources/oauth/api/sources.py similarity index 100% rename from authentik/sources/oauth/api/source.py rename to authentik/sources/oauth/api/sources.py diff --git a/authentik/sources/oauth/models.py b/authentik/sources/oauth/models.py index 7d8dd2fb7..75999639e 100644 --- a/authentik/sources/oauth/models.py +++ b/authentik/sources/oauth/models.py @@ -68,7 +68,7 @@ class OAuthSource(Source): # we're using Type[] instead of type[] here since type[] interferes with the property above @property def serializer(self) -> Type[Serializer]: - from authentik.sources.oauth.api.source import OAuthSourceSerializer + from authentik.sources.oauth.api.sources import OAuthSourceSerializer return OAuthSourceSerializer @@ -234,7 +234,7 @@ class UserOAuthSourceConnection(UserSourceConnection): @property def serializer(self) -> Serializer: - from authentik.sources.oauth.api.source_connection import ( + from authentik.sources.oauth.api.source_connections import ( UserOAuthSourceConnectionSerializer, ) diff --git a/authentik/sources/oauth/tests/test_views.py b/authentik/sources/oauth/tests/test_views.py index 2e1919c17..f0a159655 100644 --- a/authentik/sources/oauth/tests/test_views.py +++ b/authentik/sources/oauth/tests/test_views.py @@ -3,7 +3,7 @@ from django.test import TestCase from django.urls import reverse from requests_mock import Mocker -from authentik.sources.oauth.api.source import OAuthSourceSerializer +from authentik.sources.oauth.api.sources import OAuthSourceSerializer from authentik.sources.oauth.models import OAuthSource diff --git a/authentik/sources/oauth/urls.py b/authentik/sources/oauth/urls.py index 5914f7d01..5c3e0dde2 100644 --- a/authentik/sources/oauth/urls.py +++ b/authentik/sources/oauth/urls.py @@ -2,8 +2,8 @@ from django.urls import path -from authentik.sources.oauth.api.source import OAuthSourceViewSet -from authentik.sources.oauth.api.source_connection import UserOAuthSourceConnectionViewSet +from authentik.sources.oauth.api.sources import OAuthSourceViewSet +from authentik.sources.oauth.api.source_connections import UserOAuthSourceConnectionViewSet from authentik.sources.oauth.types.registry import RequestKind from authentik.sources.oauth.views.dispatcher import DispatcherView