@ -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,
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user