Go environment authentication:
- connecting to juju-core;
- authenticating;
- unit tests for the authorization process.
Note that currently juju-core accepts any password; this will change soon.
QA steps:
- bootstrap using juju-core;
- get the boostrap node hostname from "juju status";
- accept the SSL certificate at https://hostname:17070/;
this currently works with Firefox, but not with Chromium;
- in the Juju GUI config (either app/config-debug.js or app/config-prod.js,
see below), set "socket_url" to wss://hostname:17070/ (same hostname as
above);
- in the Juju GUI config, set "apiBackend" to "go".
Run "make devel" (if you changed app/config-debug.js) or "make prod" (if you
changed app/config-prod.js), and check that you can login to the Juju GUI.
R=bcsaller
CC=
https://codereview.appspot.com/7301105