def update_with(self, name, security_info):
        s = self.__app.root.securityDefinitions.get(name, None)
        if s == None:
            raise ValueError('Unknown security name: [{0}]'.format(name))

        cred = security_info
        header = True
        if s.type == 'basic':
            cred = 'Basic ' + base64.standard_b64encode(six.b('{0}:{1}'.format(*security_info))).decode('utf-8')
            key = 'Authorization'
        elif s.type == 'apiKey':
            key = s.name
            header = getattr(s, 'in') == 'header'
        elif s.type == 'oauth2':
            key = 'access_token'
        else:
            raise ValueError('Unsupported Authorization type: [{0}, {1}]'.format(name, s.type))

        self.__info.update({name: (header, {key: cred})})
If implemented, the list of files this returns will be attached to the outgoing email
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/core.py/SwaggerSecurity.update_with--crossover with--dataset/ETHPy150Open Nomadblue/django-nomad-notifier/notifier/models.py/NotificationMixin.get_attachment_files