{"action":"opened","issue":{"url":"https://api.github.com/repos/CiscoDevNet/uniq/issues/58","repository_url":"https://api.github.com/repos/CiscoDevNet/uniq","labels_url":"https://api.github.com/repos/CiscoDevNet/uniq/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/CiscoDevNet/uniq/issues/58/comments","events_url":"https://api.github.com/repos/CiscoDevNet/uniq/issues/58/events","html_url":"https://github.com/CiscoDevNet/uniq/issues/58","id":194797386,"number":58,"title":"see problem to log in to testACI machine","user":{"login":"pax80","id":14290928,"avatar_url":"https://avatars.githubusercontent.com/u/14290928?v=3","gravatar_id":"","url":"https://api.github.com/users/pax80","html_url":"https://github.com/pax80","followers_url":"https://api.github.com/users/pax80/followers","following_url":"https://api.github.com/users/pax80/following{/other_user}","gists_url":"https://api.github.com/users/pax80/gists{/gist_id}","starred_url":"https://api.github.com/users/pax80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pax80/subscriptions","organizations_url":"https://api.github.com/users/pax80/orgs","repos_url":"https://api.github.com/users/pax80/repos","events_url":"https://api.github.com/users/pax80/events{/privacy}","received_events_url":"https://api.github.com/users/pax80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-10T22:15:35Z","updated_at":"2016-12-10T22:15:35Z","closed_at":null,"body":"i have an instance on ACI in a lab and i tested the code to log in, but with the actual \r\napy/nb/client_manager.py i am unable to authenticate\r\n\r\n` ``# resource_path = \"/ticket\"\r\n        resource_path = \"/aaaLogin.json\"\r\n        user_info = {\r\n            \"aaaUser\": {\r\n                \"attributes\": {\r\n                    \"name\": self.username,\r\n                    \"pwd\": self.password\r\n                }\r\n            }\r\n        }\r\n        # data = json.dumps({\"username\": self.username, \"password\": self.password})\r\n        data = json.dumps(user_info)\r\n```\r\nthe commented part is the original part. i replaced the path to the aaaLogin.json that will return me the response and the token that i can thake from the response in this way\r\n\r\nresult_json = response.json()\r\nresponse.json()['imdata'][0]['aaaLogin']['attributes']['token']\r\n\r\n"}}
{"actor":{"display_login":"pax80"}}