class SAMLOrgAttrField(BaseDictWithChildField): child_fields = { 'remove': fields.BooleanField(required=False), 'saml_attr': fields.CharField(required=False, allow_null=True), 'remove_admins': fields.BooleanField(required=False), 'saml_admin_attr': fields.CharField(required=False, allow_null=True), }
class SAMLOrgAttrField(HybridDictField): remove = fields.BooleanField(required=False) saml_attr = fields.CharField(required=False, allow_null=True) remove_admins = fields.BooleanField(required=False) saml_admin_attr = fields.CharField(required=False, allow_null=True) child = _Forbidden()
class SocialSingleOrganizationMapField(HybridDictField): admins = SocialMapField(allow_null=True, required=False) users = SocialMapField(allow_null=True, required=False) remove_admins = fields.BooleanField(required=False) remove_users = fields.BooleanField(required=False) child = _Forbidden()
class LDAPSingleOrganizationMapField(HybridDictField): admins = LDAPDNMapField(allow_null=True, required=False) users = LDAPDNMapField(allow_null=True, required=False) auditors = LDAPDNMapField(allow_null=True, required=False) remove_admins = fields.BooleanField(required=False) remove_users = fields.BooleanField(required=False) remove_auditors = fields.BooleanField(required=False) child = _Forbidden()
class SocialSingleOrganizationMapField(BaseDictWithChildField): default_error_messages = { 'invalid_keys': _('Invalid key(s) for organization map: {invalid_keys}.'), } child_fields = { 'admins': SocialMapField(allow_null=True, required=False), 'users': SocialMapField(allow_null=True, required=False), 'remove_admins': fields.BooleanField(required=False), 'remove_users': fields.BooleanField(required=False), }
class SAMLTeamAttrField(HybridDictField): team_org_map = fields.ListField(required=False, child=SAMLTeamAttrTeamOrgMapField(), allow_null=True) remove = fields.BooleanField(required=False) saml_attr = fields.CharField(required=False, allow_null=True) child = _Forbidden()
class SocialSingleTeamMapField(HybridDictField): organization = fields.CharField() users = SocialMapField(allow_null=True, required=False) remove = fields.BooleanField(required=False) child = _Forbidden()
class SAMLUserFlagsAttrField(HybridDictField): is_superuser_attr = fields.CharField(required=False, allow_null=True) is_superuser_value = fields.StringListField(required=False, allow_null=True) is_superuser_role = fields.StringListField(required=False, allow_null=True) remove_superusers = fields.BooleanField(required=False, allow_null=True) is_system_auditor_attr = fields.CharField(required=False, allow_null=True) is_system_auditor_value = fields.StringListField(required=False, allow_null=True) is_system_auditor_role = fields.StringListField(required=False, allow_null=True) remove_system_auditors = fields.BooleanField(required=False, allow_null=True) child = _Forbidden()
class SAMLTeamAttrField(BaseDictWithChildField): child_fields = { 'team_org_map': fields.ListField(required=False, child=SAMLTeamAttrTeamOrgMapField(), allow_null=True), 'remove': fields.BooleanField(required=False), 'saml_attr': fields.CharField(required=False, allow_null=True), }
class SocialSingleTeamMapField(BaseDictWithChildField): default_error_messages = { 'missing_keys': _('Missing required key for team map: {missing_keys}.'), 'invalid_keys': _('Invalid key(s) for team map: {invalid_keys}.'), } child_fields = { 'organization': fields.CharField(), 'users': SocialMapField(allow_null=True, required=False), 'remove': fields.BooleanField(required=False), }
class SAMLSecurityField(BaseDictWithChildField): child_fields = { 'nameIdEncrypted': fields.BooleanField(required=False), 'authnRequestsSigned': fields.BooleanField(required=False), 'logoutRequestSigned': fields.BooleanField(required=False), 'logoutResponseSigned': fields.BooleanField(required=False), 'signMetadata': fields.BooleanField(required=False), 'wantMessagesSigned': fields.BooleanField(required=False), 'wantAssertionsSigned': fields.BooleanField(required=False), 'wantAssertionsEncrypted': fields.BooleanField(required=False), 'wantNameId': fields.BooleanField(required=False), 'wantNameIdEncrypted': fields.BooleanField(required=False), 'wantAttributeStatement': fields.BooleanField(required=False), 'requestedAuthnContext': fields.StringListBooleanField(required=False), 'requestedAuthnContextComparison': fields.CharField(required=False), 'metadataValidUntil': fields.CharField(allow_null=True, required=False), 'metadataCacheDuration': fields.CharField(allow_null=True, required=False), 'signatureAlgorithm': fields.CharField(allow_null=True, required=False), 'digestAlgorithm': fields.CharField(allow_null=True, required=False), } allow_unknown_keys = True
class SAMLSecurityField(HybridDictField): nameIdEncrypted = fields.BooleanField(required=False) authnRequestsSigned = fields.BooleanField(required=False) logoutRequestSigned = fields.BooleanField(required=False) logoutResponseSigned = fields.BooleanField(required=False) signMetadata = fields.BooleanField(required=False) wantMessagesSigned = fields.BooleanField(required=False) wantAssertionsSigned = fields.BooleanField(required=False) wantAssertionsEncrypted = fields.BooleanField(required=False) wantNameId = fields.BooleanField(required=False) wantNameIdEncrypted = fields.BooleanField(required=False) wantAttributeStatement = fields.BooleanField(required=False) requestedAuthnContext = fields.StringListBooleanField(required=False) requestedAuthnContextComparison = fields.CharField(required=False) metadataValidUntil = fields.CharField(allow_null=True, required=False) metadataCacheDuration = fields.CharField(allow_null=True, required=False) signatureAlgorithm = fields.CharField(allow_null=True, required=False) digestAlgorithm = fields.CharField(allow_null=True, required=False)