<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Mar 29, 2017 at 3:03 AM James Beedy <<a href="mailto:jamesbeedy@gmail.com">jamesbeedy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">I'm back around to building a CI system that will rely heavily on libjuju to interact with my Juju models. I'm experiencing a problem authenticating to the hosted controller via JAAS due to libjuju not yet supporting the fetching and discharging of macaroons, see <a href="https://github.com/juju/python-libjuju/issues/50" class="gmail_msg" target="_blank">https://github.com/juju/python-libjuju/issues/50</a>.<br class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Wondering if anyone has a workaround on hand to interface libjuju to JAAS/hosted controller?</div></div></blockquote><div><br></div><div>If you can use the Juju CLI as well, one option would be to first run "juju login". If you don't specify a password, libjuju will use those cookies: <a href="https://github.com/juju/python-libjuju/blob/master/juju/client/connection.py#L409">https://github.com/juju/python-libjuju/blob/master/juju/client/connection.py#L409</a>.</div></div></div>