Example #1
0
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),
    }
Example #2
0
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()
Example #3
0
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()
Example #4
0
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()
Example #5
0
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),
    }
Example #6
0
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()
Example #7
0
class SocialSingleTeamMapField(HybridDictField):

    organization = fields.CharField()
    users = SocialMapField(allow_null=True, required=False)
    remove = fields.BooleanField(required=False)

    child = _Forbidden()
Example #8
0
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()
Example #9
0
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),
    }
Example #10
0
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),
    }
Example #11
0
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
Example #12
0
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)