Ziti login -f admin1@gmail.com.json returns unAuthorized

i am running openziti/quickstart v2.0.0.

when i exec inside ziti-controller and do zitiLogin(logs me in as default admin, username/password auth), i can list identities with ziti edge list identities and it works.

when i cp a identity json file and do ziti login -f admin1@gmail.com.json, and then try to list identities, i get error:

ziti@9ec4b4bf57c3:/persistent$ ziti login -f ./admin1@gmail.com.json
Saving identity 'default' to /home/ziti/.config/ziti/ziti-cli.json
ziti@9ec4b4bf57c3:/persistent$ ziti edge list identities
Error: error listing https://ziti-edge-controller:443/edge/management/v1/identities in Ziti Edge Controller. Status code: 401 Unauthorized, Server returned: {
"error": {
"code": "UNAUTHORIZED",
"message": "The request could not be completed. The session is not authorized or the credentials are invalid",
"requestId": "M8iZRloe1"
},
"meta": {
"apiEnrollmentVersion": "0.0.1",
"apiVersion": "0.0.1"
}
}

error listing https://ziti-edge-controller:443/edge/management/v1/identities in Ziti Edge Controller. Status code: 401 Unauthorized, Server returned: {
"error": {
"code": "UNAUTHORIZED",
"message": "The request could not be completed. The session is not authorized or the credentials are invalid",
"requestId": "M8iZRloe1"
},
"meta": {
"apiEnrollmentVersion": "0.0.1",
"apiVersion": "0.0.1"
}
}
ziti@9ec4b4bf57c3:/persistent$

admin1@gmail.com is a ziti admin.

my goal is to delete default Admin user(created by ziti ziti-controller-init-container), and auth using certs only(no username/password at all).

Hi @CarlosHleb, this seems like a regression. I'll file a bug and get it fixed. Thanks for letting us know. I'll follow up with a bug when i log it.