Re: Authenticating to model on shared controller

2016-11-05 Thread Tim Van Steenburgh
Thanks Francesco - I didn't realize that the base64-decoded value was in fact the json-serialized macaroon. Now I have valid macaroons, but I'm still getting the "redirection required" error message back from the Login api, and I have no idea why. Digging around in juju code trying to figure it ou

Re: Authenticating to model on shared controller

2016-11-05 Thread Francesco Banconi
> On 5 Nov 2016, at 23:07, Tim Van Steenburgh > wrote: > > Can anyone tell me how the macaroons in ~/.go-cookies are encoded? If I try to > deserialize the 'Value' value directly (using libmacaroons), I get an > 'invalid macaroon' > error. I also tried base64-decoding the value first, and that

Re: Authenticating to model on shared controller

2016-11-05 Thread Tim Van Steenburgh
Can anyone tell me how the macaroons in ~/.go-cookies are encoded? If I try to deserialize the 'Value' value directly (using libmacaroons), I get an 'invalid macaroon' error. I also tried base64-decoding the value first, and that didn't work either. My plan is to grab macaroons out of ~/.go-cookie

Re: Authenticating to model on shared controller

2016-11-04 Thread Uros Jovanovic
Through Identity manager and SSO with macaroons. You'll have them in ~/.go-cookies and ~/.local/share/juju/usso-store-token (or something like that). Feel free to ask in #jaas On Fri, Nov 4, 2016 at 6:51 PM, Tim Van Steenburgh < tim.van.steenbu...@canonical.com> wrote: > If I `juju register` a s