Skip to content

[NOTE] Not support login multiple users at the same time #16

@moooofly

Description

@moooofly

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).

Metadata

Metadata

Assignees

Labels

notemarkdown some conclusions

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions