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.
jumpserver/apps/settings/serializers/auth/sso.py

20 lines
595 B

from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
__all__ = [
'SSOSettingSerializer',
]
class SSOSettingSerializer(serializers.Serializer):
PREFIX_TITLE = _('SSO')
AUTH_SSO = serializers.BooleanField(
required=False, label=_('Enable SSO auth'),
help_text=_("Other service can using SSO token login to JumpServer without password")
)
AUTH_SSO_AUTHKEY_TTL = serializers.IntegerField(
required=False, label=_('SSO auth key TTL'), help_text=_("Unit: second"),
min_value=60, max_value=60 * 30
)