def getExtensionArgs(self):
        ns_args = {
            'preferred_auth_policies':' '.join(self.preferred_auth_policies)
            }

        if self.max_auth_age is not None:
            ns_args['max_auth_age'] = str(self.max_auth_age)

        return ns_args
@see: C{L{Extension.getExtensionArgs}}
dataset/ETHPy150Open CollabQ/CollabQ/openid/extensions/pape.py/Request.getExtensionArgs