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$