How to use the c2cwsgiutils.auth.is_auth function in c2cwsgiutils

To help you get started, we’ve selected a few c2cwsgiutils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github camptocamp / tilecloud-chain / tilecloud_chain / views / admin.py View on Github external
def index(self):
        return {
            'secret': self.request.params.get('secret'),
            'auth': is_auth(self.request),
            'commands': self.gene.config.get('server', {}).get('predefined_commands', []),
            'status': get_status(self.gene),
            'run_url': self.request.route_url('admin_run')
        }