Beispiel #1
0
 def load_config(self):
     self.new_config(
         self.provider_id,
         pconfig.String(
             'Name',
             'A nickname used to easily identify the Service Provider.'
             ' Only alphanumeric characters [A-Z,a-z,0-9] and spaces are'
             '  accepted.',
             self.name),
         pconfig.String(
             'Metadata',
             "Service Provider's metadata",
             self.metadata,
             multiline=True),
         pconfig.String(
             'Description',
             'A description of the SP to show on the Portal.',
             self.description),
         pconfig.String(
             'Service Provider link',
             'A link to the Service Provider for the Portal.',
             self.splink),
         pconfig.Condition(
             'Visible in Portal',
             'This SP is visible in the Portal.',
             self.visible),
         pconfig.Image(
             'Image File',
             'Image to display for this SP in the Portal. Scale to '
             '100x200 for best results.',
             self.imagefile),
         pconfig.Pick(
             'Default NameID',
             'Default NameID used by Service Providers.',
             SAML2_NAMEID_MAP.keys(),
             self.default_nameid),
         pconfig.Choice(
             'Allowed NameIDs',
             'Allowed NameIDs for this Service Provider.',
             SAML2_NAMEID_MAP.keys(),
             self.allowed_nameids),
         pconfig.String(
             'User Owner',
             'The user that owns this Service Provider',
             self.owner),
         pconfig.MappingList(
             'Attribute Mapping',
             'Defines how to map attributes before returning them to'
             ' the SP. Setting this overrides the global values.',
             self.attribute_mappings),
         pconfig.ComplexList(
             'Allowed Attributes',
             'Defines a list of allowed attributes, applied after mapping.'
             ' Setting this overrides the global values.',
             self.allowed_attributes),
     )
Beispiel #2
0
 def load_config(self):
     self.new_config(
         self.provider_id,
         pconfig.String(
             'Name',
             'A nickname used to easily identify the Service Provider.'
             ' Only alphanumeric characters [A-Z,a-z,0-9] and spaces are'
             '  accepted.', self.name),
         pconfig.String('Metadata',
                        "Service Provider's metadata",
                        self.metadata,
                        multiline=True),
         pconfig.String('Description',
                        'A description of the SP to show on the Portal.',
                        self.description),
         pconfig.String('Service Provider link',
                        'A link to the Service Provider for the Portal.',
                        self.splink),
         pconfig.Condition('Visible in Portal',
                           'This SP is visible in the Portal.',
                           self.visible),
         pconfig.Image(
             'Image File',
             'Image to display for this SP in the Portal. Scale to '
             '100x200 for best results.', self.imagefile),
         pconfig.Pick('Default NameID',
                      'Default NameID used by Service Providers.',
                      SAML2_NAMEID_MAP.keys(), self.default_nameid),
         pconfig.Choice('Allowed NameIDs',
                        'Allowed NameIDs for this Service Provider.',
                        SAML2_NAMEID_MAP.keys(), self.allowed_nameids),
         pconfig.String('User Owner',
                        'The user that owns this Service Provider',
                        self.owner),
         pconfig.MappingList(
             'Attribute Mapping',
             'Defines how to map attributes before returning them to'
             ' the SP. Setting this overrides the global values.',
             self.attribute_mappings),
         pconfig.ComplexList(
             'Allowed Attributes',
             'Defines a list of allowed attributes, applied after mapping.'
             ' Setting this overrides the global values.',
             self.allowed_attributes),
     )
Beispiel #3
0
 def valid_nameids(self):
     return SAML2_NAMEID_MAP.keys()
Beispiel #4
0
 def valid_nameids(self):
     return SAML2_NAMEID_MAP.keys()