On Wed, Mar 29, 2017 at 3:03 AM James Beedy <[email protected]> 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 mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to