{"action":"created","issue":{"url":"https://api.github.com/repos/requests/requests-kerberos/issues/49","labels_url":"https://api.github.com/repos/requests/requests-kerberos/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/requests/requests-kerberos/issues/49/comments","events_url":"https://api.github.com/repos/requests/requests-kerberos/issues/49/events","html_url":"https://github.com/requests/requests-kerberos/issues/49","id":65771156,"number":49,"title":"Can't get authorization","user":{"login":"dlangille","id":1626436,"avatar_url":"https://avatars.githubusercontent.com/u/1626436?v=3","gravatar_id":"","url":"https://api.github.com/users/dlangille","html_url":"https://github.com/dlangille","followers_url":"https://api.github.com/users/dlangille/followers","following_url":"https://api.github.com/users/dlangille/following{/other_user}","gists_url":"https://api.github.com/users/dlangille/gists{/gist_id}","starred_url":"https://api.github.com/users/dlangille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlangille/subscriptions","organizations_url":"https://api.github.com/users/dlangille/orgs","repos_url":"https://api.github.com/users/dlangille/repos","events_url":"https://api.github.com/users/dlangille/events{/privacy}","received_events_url":"https://api.github.com/users/dlangille/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-04-01T20:20:11Z","updated_at":"2015-04-02T22:25:27Z","closed_at":null,"body":"We're getting lost here, and I'm not sure where we are going wrong.  Ideas please?\r\n\r\n<pre>\r\n>>> url = 'https://www.example.org'\r\n>>> my_headers = {'Content-Type': 'application/json'}\r\n>>> \r\n>>> requests.get(url, auth=HTTPKerberosAuth(mutual_authentication=OPTIONAL,service=\"HTTP\"), headers=my_headers, verify=False)\r\n\r\n/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:730: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html (This warning will only appear once by default.)\r\n  InsecureRequestWarning)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/api.py\", line 60, in get\r\n    return request('get', url, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/api.py\", line 49, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/sessions.py\", line 457, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/sessions.py\", line 575, in send\r\n    r = dispatch_hook('response', hooks, r, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/hooks.py\", line 41, in dispatch_hook\r\n    _hook_data = hook(hook_data, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests_kerberos/kerberos_.py\", line 252, in handle_response\r\n    _r = self.handle_401(response, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests_kerberos/kerberos_.py\", line 164, in handle_401\r\n    _r.raise_for_status()\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/models.py\", line 825, in raise_for_status\r\n    raise HTTPError(http_error_msg, response=self)\r\nrequests.exceptions.HTTPError: 401 Client Error: Authorization Required\r\n</pre>\r\n\r\nWe are using py-kerberos-1.1.1_5, requests-kerberos-0.6.1_1, and requests-2.4.3"},"comment":{"url":"https://api.github.com/repos/requests/requests-kerberos/issues/comments/89063142","html_url":"https://github.com/requests/requests-kerberos/issues/49#issuecomment-89063142","issue_url":"https://api.github.com/repos/requests/requests-kerberos/issues/49","id":89063142,"user":{"login":"dlangille","id":1626436,"avatar_url":"https://avatars.githubusercontent.com/u/1626436?v=3","gravatar_id":"","url":"https://api.github.com/users/dlangille","html_url":"https://github.com/dlangille","followers_url":"https://api.github.com/users/dlangille/followers","following_url":"https://api.github.com/users/dlangille/following{/other_user}","gists_url":"https://api.github.com/users/dlangille/gists{/gist_id}","starred_url":"https://api.github.com/users/dlangille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlangille/subscriptions","organizations_url":"https://api.github.com/users/dlangille/orgs","repos_url":"https://api.github.com/users/dlangille/repos","events_url":"https://api.github.com/users/dlangille/events{/privacy}","received_events_url":"https://api.github.com/users/dlangille/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T22:25:27Z","updated_at":"2015-04-02T22:25:27Z","body":"Ian: We are using a patched version of py-kerberos which uses Heimdal Kerberos supplied in FreeBSD base.  Might that explain it?\r\n\r\nI can do some of this testing tomorrow it it will help.  Glad to do that."}}