pysfemma.py
def is_persistent(self, entityID):
        """
        Checks if the provided entityID of the Service Provider has configured rules
        that match a list of sensitive ones. If this is the case, it associates a
        persistent-id.
        Default is transient-id.
        To customize this behavior, use the following section and syntax in
        settings.cfg:
        [SensitiveAttributes]
        rules = rule1,rule2

        To force the persistent NameID format, specify "persistent" in the SP
        attribute list
        """
        ret = False

        entityName = self._strip_protocol_identifier(entityID)

        try:
            sensitiveRules = self.config.get('SensitiveAttributes', 'rules')
            configuredRules = self.config.get('ServiceProviderAttributes',
                                              entityName)
            for r in sensitiveRules.split(','):
                if r in configuredRules.split(','):
                    ret = True
                    break
        except Exception, e:
            pass

        return ret

        Checks if the provided entityID of the Service Provider has configured rules
        that match a list of sensitive ones. If this is the case, it associates a
        persistent-id.
        Default is transient-id.
        To customize this behavior, use the following section and syntax in
        settings.cfg:
        [SensitiveAttributes]
        rules = rule1,rule2

        To force the persistent NameID format, specify "persistent" in the SP
        attribute list
        
Checks if the provided entityID of the Service Provider has configured rules
that match a list of sensitive ones. If this is the case, it associates a
persistent-id.
Default is transient-id.
To customize this behavior, use the following section and syntax in
settings.cfg:
[SensitiveAttributes]
rules = rule1,rule2

To force the persistent NameID format, specify "persistent" in the SP
attribute list
Checks if the provided entityID of the Service Provider has configured rules that match a list of sensitive ones . If this is the case it associates a persistent - id . Default is transient - id . To customize this behavior use the following section and syntax in settings . cfg : [ SensitiveAttributes ] rules = rule1 rule2 To force the persistent NameID format specify " persistent " in the SP attribute list
def is_persistent(self, entityID):
        ret = False
        entityName = self._strip_protocol_identifier(entityID)
        try:
            sensitiveRules = self.config.get('SensitiveAttributes', 'rules')
            configuredRules = self.config.get('ServiceProviderAttributes',
                                              entityName)
            for r in sensitiveRules.split(','):
                if r in configuredRules.split(','):
                    ret = True
                    break
        except Exception, e:
            pass
        return ret
def is_persistent ( self , entityID ) : ret = False entityName = self . _strip_protocol_identifier ( entityID ) try : sensitiveRules = self . config . get ( 'SensitiveAttributes' , 'rules' ) configuredRules = self . config . get ( 'ServiceProviderAttributes' , entityName ) for r in sensitiveRules . split ( ',' ) : if r in configuredRules . split ( ',' ) : ret = True break except Exception , e : pass return ret
Checks if the provided entityID of the Service Provider has configured rules
that match a list of sensitive ones.
Checks if the provided entityID of the Service Provider has configured rules that match a list of sensitive ones .
"""
        Checks if the provided entityID of the Service Provider has configured rules
        that match a list of sensitive ones. If this is the case, it associates a
        persistent-id.
        Default is transient-id.
        To customize this behavior, use the following section and syntax in
        settings.cfg:
        [SensitiveAttributes]
        rules = rule1,rule2

        To force the persistent NameID format, specify "persistent" in the SP
        attribute list
        """
self
entityID