login as a specific user
$./harborctl login -u admin
Password:
==> POST https://localhost/login
<== Cookies: [beegosessionID=4e852ac21484f70e9298b57e579ef67a; Path=/; HttpOnly; Secure]
<== Rsp Status: 200 OK
<== Rsp Body:
$
record login info into conf/.cookie.yaml
$cat ./conf/.cookie.yaml
beegosessionID: 63c090ff08181b2c1bda36a4c50f1f37
$
logout the user currently login and remove conf/.cookie.yaml
$./harborctl logout
==> GET https://localhost/log_out
<== Rsp Cookies: [beegosessionID=; Path=/; Expires=Mon, 29 Oct 2018 07:57:01 GMT; Max-Age=0; HttpOnly; Secure]
<== Rsp Status: 200 OK
<== Rsp Body:
$
If logining with different usernames multiple times, only last one will take effect (override mode).
login as a specific user
record login info into
conf/.cookie.yamllogout the user currently login and remove
conf/.cookie.yamlIf logining with different usernames multiple times, only last one will take effect (override mode).