authentik.sources.oauth.models

OAuth Client models

  1"""OAuth Client models"""
  2
  3from typing import TYPE_CHECKING
  4
  5from django.db import models
  6from django.http.request import HttpRequest
  7from django.urls import reverse
  8from django.utils.timezone import now
  9from django.utils.translation import gettext_lazy as _
 10from rest_framework.serializers import Serializer
 11
 12from authentik.core.api.object_types import CreatableType, NonCreatableType
 13from authentik.core.models import (
 14    GroupSourceConnection,
 15    PropertyMapping,
 16    Source,
 17    UserSourceConnection,
 18)
 19from authentik.core.types import UILoginButton, UserSettingSerializer
 20
 21if TYPE_CHECKING:
 22    from authentik.sources.oauth.types.registry import SourceType
 23
 24
 25class AuthorizationCodeAuthMethod(models.TextChoices):
 26    BASIC_AUTH = "basic_auth", _("HTTP Basic Authentication")
 27    POST_BODY = "post_body", _("Include the client ID and secret as request parameters")
 28
 29
 30class PKCEMethod(models.TextChoices):
 31    NONE = "none", _("No PKCE")
 32    PLAIN = "plain", _("Plain")
 33    S256 = "S256", _("S256")
 34
 35
 36class OAuthSource(NonCreatableType, Source):
 37    """Login using a Generic OAuth provider."""
 38
 39    provider_type = models.CharField(max_length=255)
 40    request_token_url = models.TextField(
 41        null=True,
 42        verbose_name=_("Request Token URL"),
 43        help_text=_(
 44            "URL used to request the initial token. This URL is only required for OAuth 1."
 45        ),
 46    )
 47    authorization_url = models.TextField(
 48        null=True,
 49        verbose_name=_("Authorization URL"),
 50        help_text=_("URL the user is redirect to to conest the flow."),
 51    )
 52    access_token_url = models.TextField(
 53        null=True,
 54        verbose_name=_("Access Token URL"),
 55        help_text=_("URL used by authentik to retrieve tokens."),
 56    )
 57    profile_url = models.TextField(
 58        null=True,
 59        verbose_name=_("Profile URL"),
 60        help_text=_("URL used by authentik to get user information."),
 61    )
 62    additional_scopes = models.TextField(
 63        default="", blank=True, verbose_name=_("Additional Scopes")
 64    )
 65    consumer_key = models.TextField()
 66    consumer_secret = models.TextField(blank=True, default="")
 67
 68    oidc_well_known_url = models.TextField(default="", blank=True)
 69    oidc_jwks_url = models.TextField(default="", blank=True)
 70    oidc_jwks = models.JSONField(default=dict, blank=True)
 71
 72    pkce = models.TextField(
 73        choices=PKCEMethod.choices, default=PKCEMethod.NONE, verbose_name=_("PKCE")
 74    )
 75    authorization_code_auth_method = models.TextField(
 76        choices=AuthorizationCodeAuthMethod.choices,
 77        default=AuthorizationCodeAuthMethod.BASIC_AUTH,
 78        help_text=_(
 79            "How to perform authentication during an authorization_code token request flow"
 80        ),
 81    )
 82
 83    @property
 84    def source_type(self) -> type[SourceType]:
 85        """Return the provider instance for this source"""
 86        from authentik.sources.oauth.types.registry import registry
 87
 88        return registry.find_type(self.provider_type)
 89
 90    @property
 91    def component(self) -> str:
 92        return "ak-source-oauth-form"
 93
 94    @property
 95    def serializer(self) -> type[Serializer]:
 96        from authentik.sources.oauth.api.source import OAuthSourceSerializer
 97
 98        return OAuthSourceSerializer
 99
100    @property
101    def property_mapping_type(self) -> type[PropertyMapping]:
102        return OAuthSourcePropertyMapping
103
104    def get_base_user_properties(self, **kwargs):
105        return self.source_type().get_base_user_properties(source=self, **kwargs)
106
107    def get_base_group_properties(self, **kwargs):
108        return self.source_type().get_base_group_properties(source=self, **kwargs)
109
110    @property
111    def icon_url(self) -> str | None:
112        # When listing source types, this property might be retrieved from an abstract
113        # model. In that case we can't check self.provider_type or self.icon_url
114        # and as such we attempt to find the correct provider type based on the mode name
115        if self.Meta.abstract:
116            from authentik.sources.oauth.types.registry import registry
117
118            provider_type = registry.find_type(
119                self._meta.model_name.replace(OAuthSource._meta.model_name, "")
120            )
121            return provider_type().icon_url()
122        icon = super().icon_url
123        if not icon:
124            provider_type = self.source_type
125            provider = provider_type()
126            icon = provider.icon_url()
127        return icon
128
129    def ui_login_button(self, request: HttpRequest) -> UILoginButton:
130        provider_type = self.source_type
131        provider = provider_type()
132        return UILoginButton(
133            name=self.name,
134            challenge=provider.login_challenge(self, request),
135            icon_url=self.get_icon_url(request, use_cache=False) or self.icon_url,
136            icon_themed_urls=self.get_icon_themed_urls(request, use_cache=False),
137            promoted=self.promoted,
138        )
139
140    def ui_user_settings(self) -> UserSettingSerializer | None:
141        return UserSettingSerializer(
142            data={
143                "title": self.name,
144                "component": "ak-user-settings-source-oauth",
145                "configure_url": reverse(
146                    "authentik_sources_oauth:oauth-client-login",
147                    kwargs={"source_slug": self.slug},
148                ),
149                "icon_url": self.icon_url,
150                "icon_themed_urls": self.icon_themed_urls,
151            }
152        )
153
154    def __str__(self) -> str:
155        return f"OAuth Source {self.name}"
156
157    class Meta:
158        verbose_name = _("OAuth Source")
159        verbose_name_plural = _("OAuth Sources")
160
161
162class GitHubOAuthSource(CreatableType, OAuthSource):
163    """Social Login using GitHub.com or a GitHub-Enterprise Instance."""
164
165    class Meta:
166        abstract = True
167        verbose_name = _("GitHub OAuth Source")
168        verbose_name_plural = _("GitHub OAuth Sources")
169
170
171class GitLabOAuthSource(CreatableType, OAuthSource):
172    """Social Login using GitLab.com or a GitLab Instance."""
173
174    class Meta:
175        abstract = True
176        verbose_name = _("GitLab OAuth Source")
177        verbose_name_plural = _("GitLab OAuth Sources")
178
179
180class TwitchOAuthSource(CreatableType, OAuthSource):
181    """Social Login using Twitch."""
182
183    class Meta:
184        abstract = True
185        verbose_name = _("Twitch OAuth Source")
186        verbose_name_plural = _("Twitch OAuth Sources")
187
188
189class MailcowOAuthSource(CreatableType, OAuthSource):
190    """Social Login using Mailcow."""
191
192    class Meta:
193        abstract = True
194        verbose_name = _("Mailcow OAuth Source")
195        verbose_name_plural = _("Mailcow OAuth Sources")
196
197
198class TwitterOAuthSource(CreatableType, OAuthSource):
199    """Social Login using Twitter.com"""
200
201    class Meta:
202        abstract = True
203        verbose_name = _("Twitter OAuth Source")
204        verbose_name_plural = _("Twitter OAuth Sources")
205
206
207class FacebookOAuthSource(CreatableType, OAuthSource):
208    """Social Login using Facebook.com."""
209
210    class Meta:
211        abstract = True
212        verbose_name = _("Facebook OAuth Source")
213        verbose_name_plural = _("Facebook OAuth Sources")
214
215
216class DiscordOAuthSource(CreatableType, OAuthSource):
217    """Social Login using Discord."""
218
219    class Meta:
220        abstract = True
221        verbose_name = _("Discord OAuth Source")
222        verbose_name_plural = _("Discord OAuth Sources")
223
224
225class SlackOAuthSource(CreatableType, OAuthSource):
226    """Social Login using Slack."""
227
228    class Meta:
229        abstract = True
230        verbose_name = _("Slack OAuth Source")
231        verbose_name_plural = _("Slack OAuth Sources")
232
233
234class PatreonOAuthSource(CreatableType, OAuthSource):
235    """Social Login using Patreon."""
236
237    class Meta:
238        abstract = True
239        verbose_name = _("Patreon OAuth Source")
240        verbose_name_plural = _("Patreon OAuth Sources")
241
242
243class GoogleOAuthSource(CreatableType, OAuthSource):
244    """Social Login using Google or Google Workspace (GSuite)."""
245
246    class Meta:
247        abstract = True
248        verbose_name = _("Google OAuth Source")
249        verbose_name_plural = _("Google OAuth Sources")
250
251
252class EntraIDOAuthSource(CreatableType, OAuthSource):
253    """Social Login using Entra ID."""
254
255    class Meta:
256        abstract = True
257        verbose_name = _("Entra ID OAuth Source")
258        verbose_name_plural = _("Entra ID OAuth Sources")
259
260
261class OpenIDConnectOAuthSource(CreatableType, OAuthSource):
262    """Login using a Generic OpenID-Connect compliant provider."""
263
264    class Meta:
265        abstract = True
266        verbose_name = _("OpenID OAuth Source")
267        verbose_name_plural = _("OpenID OAuth Sources")
268
269
270class AppleOAuthSource(CreatableType, OAuthSource):
271    """Social Login using Apple."""
272
273    class Meta:
274        abstract = True
275        verbose_name = _("Apple OAuth Source")
276        verbose_name_plural = _("Apple OAuth Sources")
277
278
279class OktaOAuthSource(CreatableType, OAuthSource):
280    """Social Login using Okta."""
281
282    class Meta:
283        abstract = True
284        verbose_name = _("Okta OAuth Source")
285        verbose_name_plural = _("Okta OAuth Sources")
286
287
288class RedditOAuthSource(CreatableType, OAuthSource):
289    """Social Login using reddit.com."""
290
291    class Meta:
292        abstract = True
293        verbose_name = _("Reddit OAuth Source")
294        verbose_name_plural = _("Reddit OAuth Sources")
295
296
297class WeChatOAuthSource(CreatableType, OAuthSource):
298    """Social Login using WeChat."""
299
300    class Meta:
301        abstract = True
302        verbose_name = _("WeChat OAuth Source")
303        verbose_name_plural = _("WeChat OAuth Sources")
304
305
306class OAuthSourcePropertyMapping(PropertyMapping):
307    """Map OAuth properties to User or Group object attributes"""
308
309    expression_allowed_types = [dict]
310
311    @property
312    def component(self) -> str:
313        return "ak-property-mapping-source-oauth-form"
314
315    @property
316    def serializer(self) -> type[Serializer]:
317        from authentik.sources.oauth.api.property_mappings import (
318            OAuthSourcePropertyMappingSerializer,
319        )
320
321        return OAuthSourcePropertyMappingSerializer
322
323    class Meta:
324        verbose_name = _("OAuth Source Property Mapping")
325        verbose_name_plural = _("OAuth Source Property Mappings")
326
327
328class UserOAuthSourceConnection(UserSourceConnection):
329    """Authorized remote OAuth provider."""
330
331    access_token = models.TextField(blank=True, null=True, default=None)
332    refresh_token = models.TextField(blank=True, null=True, default=None)
333    expires = models.DateTimeField(default=now)
334
335    @property
336    def is_valid(self):
337        return self.expires > now()
338
339    @property
340    def serializer(self) -> type[Serializer]:
341        from authentik.sources.oauth.api.source_connection import (
342            UserOAuthSourceConnectionSerializer,
343        )
344
345        return UserOAuthSourceConnectionSerializer
346
347    class Meta:
348        verbose_name = _("User OAuth Source Connection")
349        verbose_name_plural = _("User OAuth Source Connections")
350
351
352class GroupOAuthSourceConnection(GroupSourceConnection):
353    """Group-source connection"""
354
355    @property
356    def serializer(self) -> type[Serializer]:
357        from authentik.sources.oauth.api.source_connection import (
358            GroupOAuthSourceConnectionSerializer,
359        )
360
361        return GroupOAuthSourceConnectionSerializer
362
363    class Meta:
364        verbose_name = _("Group OAuth Source Connection")
365        verbose_name_plural = _("Group OAuth Source Connections")
class AuthorizationCodeAuthMethod(django.db.models.enums.TextChoices):
26class AuthorizationCodeAuthMethod(models.TextChoices):
27    BASIC_AUTH = "basic_auth", _("HTTP Basic Authentication")
28    POST_BODY = "post_body", _("Include the client ID and secret as request parameters")

Class for creating enumerated string choices.

class PKCEMethod(django.db.models.enums.TextChoices):
31class PKCEMethod(models.TextChoices):
32    NONE = "none", _("No PKCE")
33    PLAIN = "plain", _("Plain")
34    S256 = "S256", _("S256")

Class for creating enumerated string choices.

 37class OAuthSource(NonCreatableType, Source):
 38    """Login using a Generic OAuth provider."""
 39
 40    provider_type = models.CharField(max_length=255)
 41    request_token_url = models.TextField(
 42        null=True,
 43        verbose_name=_("Request Token URL"),
 44        help_text=_(
 45            "URL used to request the initial token. This URL is only required for OAuth 1."
 46        ),
 47    )
 48    authorization_url = models.TextField(
 49        null=True,
 50        verbose_name=_("Authorization URL"),
 51        help_text=_("URL the user is redirect to to conest the flow."),
 52    )
 53    access_token_url = models.TextField(
 54        null=True,
 55        verbose_name=_("Access Token URL"),
 56        help_text=_("URL used by authentik to retrieve tokens."),
 57    )
 58    profile_url = models.TextField(
 59        null=True,
 60        verbose_name=_("Profile URL"),
 61        help_text=_("URL used by authentik to get user information."),
 62    )
 63    additional_scopes = models.TextField(
 64        default="", blank=True, verbose_name=_("Additional Scopes")
 65    )
 66    consumer_key = models.TextField()
 67    consumer_secret = models.TextField(blank=True, default="")
 68
 69    oidc_well_known_url = models.TextField(default="", blank=True)
 70    oidc_jwks_url = models.TextField(default="", blank=True)
 71    oidc_jwks = models.JSONField(default=dict, blank=True)
 72
 73    pkce = models.TextField(
 74        choices=PKCEMethod.choices, default=PKCEMethod.NONE, verbose_name=_("PKCE")
 75    )
 76    authorization_code_auth_method = models.TextField(
 77        choices=AuthorizationCodeAuthMethod.choices,
 78        default=AuthorizationCodeAuthMethod.BASIC_AUTH,
 79        help_text=_(
 80            "How to perform authentication during an authorization_code token request flow"
 81        ),
 82    )
 83
 84    @property
 85    def source_type(self) -> type[SourceType]:
 86        """Return the provider instance for this source"""
 87        from authentik.sources.oauth.types.registry import registry
 88
 89        return registry.find_type(self.provider_type)
 90
 91    @property
 92    def component(self) -> str:
 93        return "ak-source-oauth-form"
 94
 95    @property
 96    def serializer(self) -> type[Serializer]:
 97        from authentik.sources.oauth.api.source import OAuthSourceSerializer
 98
 99        return OAuthSourceSerializer
100
101    @property
102    def property_mapping_type(self) -> type[PropertyMapping]:
103        return OAuthSourcePropertyMapping
104
105    def get_base_user_properties(self, **kwargs):
106        return self.source_type().get_base_user_properties(source=self, **kwargs)
107
108    def get_base_group_properties(self, **kwargs):
109        return self.source_type().get_base_group_properties(source=self, **kwargs)
110
111    @property
112    def icon_url(self) -> str | None:
113        # When listing source types, this property might be retrieved from an abstract
114        # model. In that case we can't check self.provider_type or self.icon_url
115        # and as such we attempt to find the correct provider type based on the mode name
116        if self.Meta.abstract:
117            from authentik.sources.oauth.types.registry import registry
118
119            provider_type = registry.find_type(
120                self._meta.model_name.replace(OAuthSource._meta.model_name, "")
121            )
122            return provider_type().icon_url()
123        icon = super().icon_url
124        if not icon:
125            provider_type = self.source_type
126            provider = provider_type()
127            icon = provider.icon_url()
128        return icon
129
130    def ui_login_button(self, request: HttpRequest) -> UILoginButton:
131        provider_type = self.source_type
132        provider = provider_type()
133        return UILoginButton(
134            name=self.name,
135            challenge=provider.login_challenge(self, request),
136            icon_url=self.get_icon_url(request, use_cache=False) or self.icon_url,
137            icon_themed_urls=self.get_icon_themed_urls(request, use_cache=False),
138            promoted=self.promoted,
139        )
140
141    def ui_user_settings(self) -> UserSettingSerializer | None:
142        return UserSettingSerializer(
143            data={
144                "title": self.name,
145                "component": "ak-user-settings-source-oauth",
146                "configure_url": reverse(
147                    "authentik_sources_oauth:oauth-client-login",
148                    kwargs={"source_slug": self.slug},
149                ),
150                "icon_url": self.icon_url,
151                "icon_themed_urls": self.icon_themed_urls,
152            }
153        )
154
155    def __str__(self) -> str:
156        return f"OAuth Source {self.name}"
157
158    class Meta:
159        verbose_name = _("OAuth Source")
160        verbose_name_plural = _("OAuth Sources")

Login using a Generic OAuth provider.

def provider_type(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def request_token_url(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def authorization_url(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def access_token_url(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def profile_url(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def additional_scopes(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def consumer_key(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def consumer_secret(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def oidc_well_known_url(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def oidc_jwks_url(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def oidc_jwks(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def pkce(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def authorization_code_auth_method(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

source_type
84    @property
85    def source_type(self) -> type[SourceType]:
86        """Return the provider instance for this source"""
87        from authentik.sources.oauth.types.registry import registry
88
89        return registry.find_type(self.provider_type)

Return the provider instance for this source

component: str
91    @property
92    def component(self) -> str:
93        return "ak-source-oauth-form"

Return component used to edit this object

serializer: type[rest_framework.serializers.Serializer]
95    @property
96    def serializer(self) -> type[Serializer]:
97        from authentik.sources.oauth.api.source import OAuthSourceSerializer
98
99        return OAuthSourceSerializer

Get serializer for this model

property_mapping_type: type[authentik.core.models.PropertyMapping]
101    @property
102    def property_mapping_type(self) -> type[PropertyMapping]:
103        return OAuthSourcePropertyMapping

Return property mapping type used by this object

def get_base_user_properties(self, **kwargs):
105    def get_base_user_properties(self, **kwargs):
106        return self.source_type().get_base_user_properties(source=self, **kwargs)

Get base properties for a user to build final properties upon.

def get_base_group_properties(self, **kwargs):
108    def get_base_group_properties(self, **kwargs):
109        return self.source_type().get_base_group_properties(source=self, **kwargs)

Get base properties for a group to build final properties upon.

icon_url: str | None
111    @property
112    def icon_url(self) -> str | None:
113        # When listing source types, this property might be retrieved from an abstract
114        # model. In that case we can't check self.provider_type or self.icon_url
115        # and as such we attempt to find the correct provider type based on the mode name
116        if self.Meta.abstract:
117            from authentik.sources.oauth.types.registry import registry
118
119            provider_type = registry.find_type(
120                self._meta.model_name.replace(OAuthSource._meta.model_name, "")
121            )
122            return provider_type().icon_url()
123        icon = super().icon_url
124        if not icon:
125            provider_type = self.source_type
126            provider = provider_type()
127            icon = provider.icon_url()
128        return icon

Get the URL to the source icon

def ui_login_button( self, request: django.http.request.HttpRequest) -> authentik.core.types.UILoginButton:
130    def ui_login_button(self, request: HttpRequest) -> UILoginButton:
131        provider_type = self.source_type
132        provider = provider_type()
133        return UILoginButton(
134            name=self.name,
135            challenge=provider.login_challenge(self, request),
136            icon_url=self.get_icon_url(request, use_cache=False) or self.icon_url,
137            icon_themed_urls=self.get_icon_themed_urls(request, use_cache=False),
138            promoted=self.promoted,
139        )

If source uses a http-based flow, return UI Information about the login button. If source doesn't use http-based flow, return None.

def ui_user_settings(self) -> authentik.core.types.UserSettingSerializer | None:
141    def ui_user_settings(self) -> UserSettingSerializer | None:
142        return UserSettingSerializer(
143            data={
144                "title": self.name,
145                "component": "ak-user-settings-source-oauth",
146                "configure_url": reverse(
147                    "authentik_sources_oauth:oauth-client-login",
148                    kwargs={"source_slug": self.slug},
149                ),
150                "icon_url": self.icon_url,
151                "icon_themed_urls": self.icon_themed_urls,
152            }
153        )

Entrypoint to integrate with User settings. Can either return None if no user settings are available, or UserSettingSerializer.

def get_pkce_display(unknown):

Method descriptor with partial application of the given arguments and keywords.

Supports wrapping existing descriptors and handles non-descriptor callables as instance methods.

def get_authorization_code_auth_method_display(unknown):

Method descriptor with partial application of the given arguments and keywords.

Supports wrapping existing descriptors and handles non-descriptor callables as instance methods.

source_ptr_id
source_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

oauth2_providers

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example::

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

oauth2providerjwtfederationsource_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example::

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

scimprovider_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example::

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class OAuthSource.DoesNotExist(authentik.core.models.Source.DoesNotExist):

The requested object does not exist

class OAuthSource.MultipleObjectsReturned(authentik.core.models.Source.MultipleObjectsReturned):

The query returned multiple objects when only one was expected.

class GitHubOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
163class GitHubOAuthSource(CreatableType, OAuthSource):
164    """Social Login using GitHub.com or a GitHub-Enterprise Instance."""
165
166    class Meta:
167        abstract = True
168        verbose_name = _("GitHub OAuth Source")
169        verbose_name_plural = _("GitHub OAuth Sources")

Social Login using GitHub.com or a GitHub-Enterprise Instance.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class GitHubOAuthSource.Meta:
166    class Meta:
167        abstract = True
168        verbose_name = _("GitHub OAuth Source")
169        verbose_name_plural = _("GitHub OAuth Sources")
abstract = False
verbose_name = 'GitHub OAuth Source'
verbose_name_plural = 'GitHub OAuth Sources'
class GitLabOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
172class GitLabOAuthSource(CreatableType, OAuthSource):
173    """Social Login using GitLab.com or a GitLab Instance."""
174
175    class Meta:
176        abstract = True
177        verbose_name = _("GitLab OAuth Source")
178        verbose_name_plural = _("GitLab OAuth Sources")

Social Login using GitLab.com or a GitLab Instance.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class GitLabOAuthSource.Meta:
175    class Meta:
176        abstract = True
177        verbose_name = _("GitLab OAuth Source")
178        verbose_name_plural = _("GitLab OAuth Sources")
abstract = False
verbose_name = 'GitLab OAuth Source'
verbose_name_plural = 'GitLab OAuth Sources'
class TwitchOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
181class TwitchOAuthSource(CreatableType, OAuthSource):
182    """Social Login using Twitch."""
183
184    class Meta:
185        abstract = True
186        verbose_name = _("Twitch OAuth Source")
187        verbose_name_plural = _("Twitch OAuth Sources")

Social Login using Twitch.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class TwitchOAuthSource.Meta:
184    class Meta:
185        abstract = True
186        verbose_name = _("Twitch OAuth Source")
187        verbose_name_plural = _("Twitch OAuth Sources")
abstract = False
verbose_name = 'Twitch OAuth Source'
verbose_name_plural = 'Twitch OAuth Sources'
class MailcowOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
190class MailcowOAuthSource(CreatableType, OAuthSource):
191    """Social Login using Mailcow."""
192
193    class Meta:
194        abstract = True
195        verbose_name = _("Mailcow OAuth Source")
196        verbose_name_plural = _("Mailcow OAuth Sources")

Social Login using Mailcow.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class MailcowOAuthSource.Meta:
193    class Meta:
194        abstract = True
195        verbose_name = _("Mailcow OAuth Source")
196        verbose_name_plural = _("Mailcow OAuth Sources")
abstract = False
verbose_name = 'Mailcow OAuth Source'
verbose_name_plural = 'Mailcow OAuth Sources'
class TwitterOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
199class TwitterOAuthSource(CreatableType, OAuthSource):
200    """Social Login using Twitter.com"""
201
202    class Meta:
203        abstract = True
204        verbose_name = _("Twitter OAuth Source")
205        verbose_name_plural = _("Twitter OAuth Sources")

Social Login using Twitter.com

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class TwitterOAuthSource.Meta:
202    class Meta:
203        abstract = True
204        verbose_name = _("Twitter OAuth Source")
205        verbose_name_plural = _("Twitter OAuth Sources")
abstract = False
verbose_name = 'Twitter OAuth Source'
verbose_name_plural = 'Twitter OAuth Sources'
class FacebookOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
208class FacebookOAuthSource(CreatableType, OAuthSource):
209    """Social Login using Facebook.com."""
210
211    class Meta:
212        abstract = True
213        verbose_name = _("Facebook OAuth Source")
214        verbose_name_plural = _("Facebook OAuth Sources")

Social Login using Facebook.com.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class FacebookOAuthSource.Meta:
211    class Meta:
212        abstract = True
213        verbose_name = _("Facebook OAuth Source")
214        verbose_name_plural = _("Facebook OAuth Sources")
abstract = False
verbose_name = 'Facebook OAuth Source'
verbose_name_plural = 'Facebook OAuth Sources'
class DiscordOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
217class DiscordOAuthSource(CreatableType, OAuthSource):
218    """Social Login using Discord."""
219
220    class Meta:
221        abstract = True
222        verbose_name = _("Discord OAuth Source")
223        verbose_name_plural = _("Discord OAuth Sources")

Social Login using Discord.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class DiscordOAuthSource.Meta:
220    class Meta:
221        abstract = True
222        verbose_name = _("Discord OAuth Source")
223        verbose_name_plural = _("Discord OAuth Sources")
abstract = False
verbose_name = 'Discord OAuth Source'
verbose_name_plural = 'Discord OAuth Sources'
class SlackOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
226class SlackOAuthSource(CreatableType, OAuthSource):
227    """Social Login using Slack."""
228
229    class Meta:
230        abstract = True
231        verbose_name = _("Slack OAuth Source")
232        verbose_name_plural = _("Slack OAuth Sources")

Social Login using Slack.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class SlackOAuthSource.Meta:
229    class Meta:
230        abstract = True
231        verbose_name = _("Slack OAuth Source")
232        verbose_name_plural = _("Slack OAuth Sources")
abstract = False
verbose_name = 'Slack OAuth Source'
verbose_name_plural = 'Slack OAuth Sources'
class PatreonOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
235class PatreonOAuthSource(CreatableType, OAuthSource):
236    """Social Login using Patreon."""
237
238    class Meta:
239        abstract = True
240        verbose_name = _("Patreon OAuth Source")
241        verbose_name_plural = _("Patreon OAuth Sources")

Social Login using Patreon.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class PatreonOAuthSource.Meta:
238    class Meta:
239        abstract = True
240        verbose_name = _("Patreon OAuth Source")
241        verbose_name_plural = _("Patreon OAuth Sources")
abstract = False
verbose_name = 'Patreon OAuth Source'
verbose_name_plural = 'Patreon OAuth Sources'
class GoogleOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
244class GoogleOAuthSource(CreatableType, OAuthSource):
245    """Social Login using Google or Google Workspace (GSuite)."""
246
247    class Meta:
248        abstract = True
249        verbose_name = _("Google OAuth Source")
250        verbose_name_plural = _("Google OAuth Sources")

Social Login using Google or Google Workspace (GSuite).

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class GoogleOAuthSource.Meta:
247    class Meta:
248        abstract = True
249        verbose_name = _("Google OAuth Source")
250        verbose_name_plural = _("Google OAuth Sources")
abstract = False
verbose_name = 'Google OAuth Source'
verbose_name_plural = 'Google OAuth Sources'
class EntraIDOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
253class EntraIDOAuthSource(CreatableType, OAuthSource):
254    """Social Login using Entra ID."""
255
256    class Meta:
257        abstract = True
258        verbose_name = _("Entra ID OAuth Source")
259        verbose_name_plural = _("Entra ID OAuth Sources")

Social Login using Entra ID.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class EntraIDOAuthSource.Meta:
256    class Meta:
257        abstract = True
258        verbose_name = _("Entra ID OAuth Source")
259        verbose_name_plural = _("Entra ID OAuth Sources")
abstract = False
verbose_name = 'Entra ID OAuth Source'
verbose_name_plural = 'Entra ID OAuth Sources'
class OpenIDConnectOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
262class OpenIDConnectOAuthSource(CreatableType, OAuthSource):
263    """Login using a Generic OpenID-Connect compliant provider."""
264
265    class Meta:
266        abstract = True
267        verbose_name = _("OpenID OAuth Source")
268        verbose_name_plural = _("OpenID OAuth Sources")

Login using a Generic OpenID-Connect compliant provider.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class OpenIDConnectOAuthSource.Meta:
265    class Meta:
266        abstract = True
267        verbose_name = _("OpenID OAuth Source")
268        verbose_name_plural = _("OpenID OAuth Sources")
abstract = False
verbose_name = 'OpenID OAuth Source'
verbose_name_plural = 'OpenID OAuth Sources'
class AppleOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
271class AppleOAuthSource(CreatableType, OAuthSource):
272    """Social Login using Apple."""
273
274    class Meta:
275        abstract = True
276        verbose_name = _("Apple OAuth Source")
277        verbose_name_plural = _("Apple OAuth Sources")

Social Login using Apple.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class AppleOAuthSource.Meta:
274    class Meta:
275        abstract = True
276        verbose_name = _("Apple OAuth Source")
277        verbose_name_plural = _("Apple OAuth Sources")
abstract = False
verbose_name = 'Apple OAuth Source'
verbose_name_plural = 'Apple OAuth Sources'
class OktaOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
280class OktaOAuthSource(CreatableType, OAuthSource):
281    """Social Login using Okta."""
282
283    class Meta:
284        abstract = True
285        verbose_name = _("Okta OAuth Source")
286        verbose_name_plural = _("Okta OAuth Sources")

Social Login using Okta.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class OktaOAuthSource.Meta:
283    class Meta:
284        abstract = True
285        verbose_name = _("Okta OAuth Source")
286        verbose_name_plural = _("Okta OAuth Sources")
abstract = False
verbose_name = 'Okta OAuth Source'
verbose_name_plural = 'Okta OAuth Sources'
class RedditOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
289class RedditOAuthSource(CreatableType, OAuthSource):
290    """Social Login using reddit.com."""
291
292    class Meta:
293        abstract = True
294        verbose_name = _("Reddit OAuth Source")
295        verbose_name_plural = _("Reddit OAuth Sources")

Social Login using reddit.com.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class RedditOAuthSource.Meta:
292    class Meta:
293        abstract = True
294        verbose_name = _("Reddit OAuth Source")
295        verbose_name_plural = _("Reddit OAuth Sources")
abstract = False
verbose_name = 'Reddit OAuth Source'
verbose_name_plural = 'Reddit OAuth Sources'
class WeChatOAuthSource(authentik.core.api.object_types.CreatableType, OAuthSource):
298class WeChatOAuthSource(CreatableType, OAuthSource):
299    """Social Login using WeChat."""
300
301    class Meta:
302        abstract = True
303        verbose_name = _("WeChat OAuth Source")
304        verbose_name_plural = _("WeChat OAuth Sources")

Social Login using WeChat.

oauthsource_ptr_id
oauthsource_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

Inherited Members
OAuthSource
provider_type
request_token_url
authorization_url
access_token_url
profile_url
additional_scopes
consumer_key
consumer_secret
oidc_well_known_url
oidc_jwks_url
oidc_jwks
pkce
authorization_code_auth_method
source_type
component
serializer
property_mapping_type
get_base_user_properties
get_base_group_properties
icon_url
ui_login_button
ui_user_settings
DoesNotExist
MultipleObjectsReturned
get_pkce_display
get_authorization_code_auth_method_display
source_ptr_id
source_ptr
oauth2_providers
oauth2providerjwtfederationsource_set
scimprovider_set
authentik.core.models.Source
MANAGED_INBUILT
name
slug
user_path_template
enabled
promoted
user_property_mappings
group_property_mappings
icon
authentication_flow
enrollment_flow
user_matching_mode
group_matching_mode
objects
get_icon_url
get_icon_themed_urls
icon_themed_urls
get_user_path
managed
authentication_flow_id
enrollment_flow_id
get_user_matching_mode_display
get_group_matching_mode_display
policybindingmodel_ptr_id
policybindingmodel_ptr
user_set
usersourceconnection_set
groupsourceconnection_set
sourceuserpropertymapping_set
sourcegrouppropertymapping_set
kerberossource
ldapsource
oauthsource
samlsource
identificationstage_set
identificationstagesource_set
plexsource
scimsource
telegramsource
sourcestage_set
authentik.policies.models.PolicyBindingModel
pbm_uuid
policies
policy_engine_mode
supported_policy_binding_targets
get_policy_engine_mode_display
bindings
application
applicationentitlement
source
flow
flowstagebinding
notificationrule
device
deviceaccessgroup
oauth2dynamicclientregistration
userexpirationrule
request_rule_bindings
request_rule_child_bindings
requestrulebinding
request_rules
requestrule
grantrequest_set
grantrequesttarget_set
class WeChatOAuthSource.Meta:
301    class Meta:
302        abstract = True
303        verbose_name = _("WeChat OAuth Source")
304        verbose_name_plural = _("WeChat OAuth Sources")
abstract = False
verbose_name = 'WeChat OAuth Source'
verbose_name_plural = 'WeChat OAuth Sources'
class OAuthSourcePropertyMapping(authentik.core.models.PropertyMapping):
307class OAuthSourcePropertyMapping(PropertyMapping):
308    """Map OAuth properties to User or Group object attributes"""
309
310    expression_allowed_types = [dict]
311
312    @property
313    def component(self) -> str:
314        return "ak-property-mapping-source-oauth-form"
315
316    @property
317    def serializer(self) -> type[Serializer]:
318        from authentik.sources.oauth.api.property_mappings import (
319            OAuthSourcePropertyMappingSerializer,
320        )
321
322        return OAuthSourcePropertyMappingSerializer
323
324    class Meta:
325        verbose_name = _("OAuth Source Property Mapping")
326        verbose_name_plural = _("OAuth Source Property Mappings")

Map OAuth properties to User or Group object attributes

expression_allowed_types = [<class 'dict'>]
component: str
312    @property
313    def component(self) -> str:
314        return "ak-property-mapping-source-oauth-form"

Return component used to edit this object

serializer: type[rest_framework.serializers.Serializer]
316    @property
317    def serializer(self) -> type[Serializer]:
318        from authentik.sources.oauth.api.property_mappings import (
319            OAuthSourcePropertyMappingSerializer,
320        )
321
322        return OAuthSourcePropertyMappingSerializer

Get serializer for this model

propertymapping_ptr_id
propertymapping_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

class OAuthSourcePropertyMapping.DoesNotExist(authentik.core.models.PropertyMapping.DoesNotExist):

The requested object does not exist

class OAuthSourcePropertyMapping.MultipleObjectsReturned(authentik.core.models.PropertyMapping.MultipleObjectsReturned):

The query returned multiple objects when only one was expected.

class UserOAuthSourceConnection(authentik.core.models.UserSourceConnection):
329class UserOAuthSourceConnection(UserSourceConnection):
330    """Authorized remote OAuth provider."""
331
332    access_token = models.TextField(blank=True, null=True, default=None)
333    refresh_token = models.TextField(blank=True, null=True, default=None)
334    expires = models.DateTimeField(default=now)
335
336    @property
337    def is_valid(self):
338        return self.expires > now()
339
340    @property
341    def serializer(self) -> type[Serializer]:
342        from authentik.sources.oauth.api.source_connection import (
343            UserOAuthSourceConnectionSerializer,
344        )
345
346        return UserOAuthSourceConnectionSerializer
347
348    class Meta:
349        verbose_name = _("User OAuth Source Connection")
350        verbose_name_plural = _("User OAuth Source Connections")

Authorized remote OAuth provider.

def access_token(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def refresh_token(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

def expires(unknown):

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

is_valid
336    @property
337    def is_valid(self):
338        return self.expires > now()
serializer: type[rest_framework.serializers.Serializer]
340    @property
341    def serializer(self) -> type[Serializer]:
342        from authentik.sources.oauth.api.source_connection import (
343            UserOAuthSourceConnectionSerializer,
344        )
345
346        return UserOAuthSourceConnectionSerializer

Get serializer for this model

def get_next_by_expires(unknown):

Method descriptor with partial application of the given arguments and keywords.

Supports wrapping existing descriptors and handles non-descriptor callables as instance methods.

def get_previous_by_expires(unknown):

Method descriptor with partial application of the given arguments and keywords.

Supports wrapping existing descriptors and handles non-descriptor callables as instance methods.

usersourceconnection_ptr_id
usersourceconnection_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

class UserOAuthSourceConnection.DoesNotExist(authentik.core.models.UserSourceConnection.DoesNotExist):

The requested object does not exist

class UserOAuthSourceConnection.MultipleObjectsReturned(authentik.core.models.UserSourceConnection.MultipleObjectsReturned):

The query returned multiple objects when only one was expected.

class GroupOAuthSourceConnection(authentik.core.models.GroupSourceConnection):
353class GroupOAuthSourceConnection(GroupSourceConnection):
354    """Group-source connection"""
355
356    @property
357    def serializer(self) -> type[Serializer]:
358        from authentik.sources.oauth.api.source_connection import (
359            GroupOAuthSourceConnectionSerializer,
360        )
361
362        return GroupOAuthSourceConnectionSerializer
363
364    class Meta:
365        verbose_name = _("Group OAuth Source Connection")
366        verbose_name_plural = _("Group OAuth Source Connections")

Group-source connection

serializer: type[rest_framework.serializers.Serializer]
356    @property
357    def serializer(self) -> type[Serializer]:
358        from authentik.sources.oauth.api.source_connection import (
359            GroupOAuthSourceConnectionSerializer,
360        )
361
362        return GroupOAuthSourceConnectionSerializer

Get serializer for this model

groupsourceconnection_ptr_id
groupsourceconnection_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example::

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

class GroupOAuthSourceConnection.DoesNotExist(authentik.core.models.GroupSourceConnection.DoesNotExist):

The requested object does not exist

class GroupOAuthSourceConnection.MultipleObjectsReturned(authentik.core.models.GroupSourceConnection.MultipleObjectsReturned):

The query returned multiple objects when only one was expected.