{"action":"created","issue":{"url":"https://api.github.com/repos/raphiz/stundenplanplaner/issues/14","repository_url":"https://api.github.com/repos/raphiz/stundenplanplaner","labels_url":"https://api.github.com/repos/raphiz/stundenplanplaner/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/raphiz/stundenplanplaner/issues/14/comments","events_url":"https://api.github.com/repos/raphiz/stundenplanplaner/issues/14/events","html_url":"https://github.com/raphiz/stundenplanplaner/issues/14","id":176642802,"number":14,"title":"Fehler beim Login über ADFS","user":{"login":"Excape","id":5650949,"avatar_url":"https://avatars.githubusercontent.com/u/5650949?v=3","gravatar_id":"","url":"https://api.github.com/users/Excape","html_url":"https://github.com/Excape","followers_url":"https://api.github.com/users/Excape/followers","following_url":"https://api.github.com/users/Excape/following{/other_user}","gists_url":"https://api.github.com/users/Excape/gists{/gist_id}","starred_url":"https://api.github.com/users/Excape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Excape/subscriptions","organizations_url":"https://api.github.com/users/Excape/orgs","repos_url":"https://api.github.com/users/Excape/repos","events_url":"https://api.github.com/users/Excape/events{/privacy}","received_events_url":"https://api.github.com/users/Excape/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-13T13:38:43Z","updated_at":"2016-09-13T14:33:51Z","closed_at":null,"body":"Bei der signin-Methode tritt wohl aufgrund des veränderten ADFS-Login-Screens folgender Fehler auf:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"demos/export_timetable.py\", line 13, in <module>\r\n    response = source.signin(username, password)\r\n  File \"/src/planner/datasource.py\", line 39, in signin\r\n    self.scraper.signin(user, password)\r\n  File \"/src/planner/datasource.py\", line 278, in signin\r\n    '__db': html.select('input[name=\"__db\"]')[0]['value'],\r\nIndexError: list index out of range\r\n```\r\n\r\nÜber VPN funktioniert es übrigens auch nicht. Beim Aufruf über den Browser wird zwar Basic Authentication gemacht, aber zuerst wird weitergeleitet von `unterricht.hsr.ch` auf `adfs.hsr.ch` (302). Das Skript prüft nur, ob ein 401 zurückgegeben wird\r\n\r\n```\r\ncurl -I https://unterricht.hsr.ch/\r\nHTTP/1.1 302 Found\r\n[...]\r\n```\r\n\r\n``` python\r\ndef _in_HSR_network(self):\r\n        response = requests.get(self.HSR_BASE_URL)\r\n        return response.status_code == 401\r\n```"},"comment":{"url":"https://api.github.com/repos/raphiz/stundenplanplaner/issues/comments/246701391","html_url":"https://github.com/raphiz/stundenplanplaner/issues/14#issuecomment-246701391","issue_url":"https://api.github.com/repos/raphiz/stundenplanplaner/issues/14","id":246701391,"user":{"login":"Excape","id":5650949,"avatar_url":"https://avatars.githubusercontent.com/u/5650949?v=3","gravatar_id":"","url":"https://api.github.com/users/Excape","html_url":"https://github.com/Excape","followers_url":"https://api.github.com/users/Excape/followers","following_url":"https://api.github.com/users/Excape/following{/other_user}","gists_url":"https://api.github.com/users/Excape/gists{/gist_id}","starred_url":"https://api.github.com/users/Excape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Excape/subscriptions","organizations_url":"https://api.github.com/users/Excape/orgs","repos_url":"https://api.github.com/users/Excape/repos","events_url":"https://api.github.com/users/Excape/events{/privacy}","received_events_url":"https://api.github.com/users/Excape/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T14:33:51Z","updated_at":"2016-09-13T14:33:51Z","body":"@raphiz Funktioniert nun. Merci :smiley: :+1: "}}
{"actor":{"display_login":"Excape"}}