mirror of https://github.com/jumpserver/jumpserver
18 lines
526 B
Python
18 lines
526 B
Python
![]() |
|
||
|
from django.utils.translation import ugettext_lazy as _
|
||
|
from rest_framework import serializers
|
||
|
|
||
|
__all__ = [
|
||
|
'SSOSettingSerializer',
|
||
|
]
|
||
|
|
||
|
|
||
|
class SSOSettingSerializer(serializers.Serializer):
|
||
|
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")
|
||
|
)
|