def browser_authorize(self):
        """
        Open a browser to the authorization url and spool up a CherryPy
        server to accept the response
        """
        url = self.authorize_url()
        # Open the web browser in a new thread for command-line browser support
        threading.Timer(1, webbrowser.open, args=(url,)).start()

        server_config = {
            'server.socket_host': '0.0.0.0',
            'server.socket_port': 443,

            'server.ssl_module': 'pyopenssl',
            'server.ssl_certificate': 'tests/files/certificate.cert',
            'server.ssl_private_key': 'tests/files/key.key',
        }

        cherrypy.config.update(server_config)
        cherrypy.quickstart(self)
def browser_authorize ( self ) : url = self . authorize_url ( ) threading . Timer ( 1 , webbrowser . open , args = ( url , ) ) . start ( ) server_config = { 'server.socket_host' : '0.0.0.0' , 'server.socket_port' : 443 , 'server.ssl_module' : 'pyopenssl' , 'server.ssl_certificate' : 'tests/files/certificate.cert' , 'server.ssl_private_key' : 'tests/files/key.key' , } cherrypy . config . update ( server_config ) cherrypy . quickstart ( self )
Open a browser to the authorization url and spool up a CherryPy
        server to accept the response