Defines SSO-related constants and enums for authentication providers and audit events.
# Source: https://github.com/apptension/saas-boilerplate | License: MIT | Copyright 2023 Apptension
# Provided via justclaw.it.com; keep this notice with the code.
from enum import Enum
from django.db import models
class IdentityProviderType(models.TextChoices):
"""
Supported Identity Provider protocols.
"""
SAML = "saml", "SAML 2.0"
OIDC = "oidc", "OpenID Connect"
class SSOConnectionStatus(models.TextChoices):
"""
SSO connection configuration status.
"""
DRAFT = "draft", "Draft"
ACTIVE = "active", "Active"
INACTIVE = "inactive", "Inactive"
ERROR = "error", "Configuration Error"
class SAMLNameIdFormat(models.TextChoices):
"""
SAML NameID formats.
"""
EMAIL = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", "E
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key