On Wed, Mar 29, 2017 at 3:03 AM James Beedy <jamesbe...@gmail.com> wrote:

> 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
> https://github.com/juju/python-libjuju/issues/50.
>
> Wondering if anyone has a workaround on hand to interface libjuju to
> JAAS/hosted controller?
>

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:
https://github.com/juju/python-libjuju/blob/master/juju/client/connection.py#L409
.
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to