To perform authenticated requests with TLS using curl (which is default when starting Mothership), add the -u
flag to your curl commands:
$ curl -u <username>:<password> https://localhost:8080/images -k
To enable the CLI commands to send your credentials when making requests, you can either add the --username
and --password
flags to your CLI commands,
or perform ./mothership init
to have the client prompt you for your credentials and store them in a config file for future CLI commands.
$ ./<mothership-binary> images --username <username> --password <password>
When you have come this far, or if you want to connect to a public Mothership that is already running, you can open your browser and go to the Mothership's website.
If you are running a Mothership locally, you will find your Mothership's website by going to https://localhost:8080 if you have started your Mothership with TLS enabled.
If you have started your Mothership without TLS, you will find the website at http://localhost:8080.
Here, if the Mothership was started with authentication enabled, you will see a Login-page:
When clicking on this, a popup will appear, asking you to fill in your username and password:
This username and password must match one of the entries in the previously created mothership/config_files/.htpasswd file.
If no authentication is required, you will be sent straight to the Instances page: