Logo Search packages:      
Sourcecode: ubuntu-sso-client version File versions  Download package

def ubuntu_sso::auth::AuthorisationClient::open_in_browser (   self,
  url 
)

Open the given URL in the user's web browser.

Definition at line 263 of file auth.py.

00263                                   :
        """Open the given URL in the user's web browser."""
        logger.debug("Opening '%s' in the browser", url)
        p = subprocess.Popen(["xdg-open", url], bufsize=4096,
                             stderr=subprocess.PIPE)
        p.wait()
        if p.returncode != 0:
            errors = "".join(p.stderr.readlines())
            if errors != "":
                self._forward_error_callback(IOError(errors))

    def acquire_access_token_if_online(self, description=None, store=False):


Generated by  Doxygen 1.6.0   Back to index