libjuju macaroons workaround
Andrew Wilkins
andrew.wilkins at canonical.com
Tue Mar 28 23:53:53 UTC 2017
On Wed, Mar 29, 2017 at 3:03 AM James Beedy <jamesbeedy at 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
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20170328/5b6d3cf2/attachment.html>
More information about the Juju-dev
mailing list