mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.3 KiB
30 lines
1.3 KiB
from django.utils.translation import ugettext_lazy as _
|
|
from rest_framework import serializers
|
|
|
|
__all__ = [
|
|
'AuthSettingSerializer',
|
|
]
|
|
|
|
|
|
class AuthSettingSerializer(serializers.Serializer):
|
|
PREFIX_TITLE = _('Authentication')
|
|
|
|
AUTH_CAS = serializers.BooleanField(required=False, label=_('CAS Auth'))
|
|
AUTH_OPENID = serializers.BooleanField(required=False, label=_('OPENID Auth'))
|
|
AUTH_RADIUS = serializers.BooleanField(required=False, label=_('RADIUS Auth'))
|
|
AUTH_DINGTALK = serializers.BooleanField(default=False, label=_('DingTalk Auth'))
|
|
AUTH_FEISHU = serializers.BooleanField(default=False, label=_('FeiShu Auth'))
|
|
AUTH_WECOM = serializers.BooleanField(default=False, label=_('WeCom Auth'))
|
|
AUTH_SSO = serializers.BooleanField(default=False, label=_("SSO Auth"))
|
|
AUTH_SAML2 = serializers.BooleanField(default=False, label=_("SAML2 Auth"))
|
|
FORGOT_PASSWORD_URL = serializers.CharField(
|
|
required=False, allow_blank=True, max_length=1024,
|
|
label=_("Forgot password url")
|
|
)
|
|
# HEALTH_CHECK_TOKEN = serializers.CharField(
|
|
# required=False, max_length=1024, label=_("Health check token")
|
|
# )
|
|
LOGIN_REDIRECT_MSG_ENABLED = serializers.BooleanField(
|
|
required=False, label=_("Enable login redirect msg")
|
|
)
|