{"action":"created","issue":{"url":"https://api.github.com/repos/izaakschroeder/auth-header/issues/16","repository_url":"https://api.github.com/repos/izaakschroeder/auth-header","labels_url":"https://api.github.com/repos/izaakschroeder/auth-header/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/izaakschroeder/auth-header/issues/16/comments","events_url":"https://api.github.com/repos/izaakschroeder/auth-header/issues/16/events","html_url":"https://github.com/izaakschroeder/auth-header/pull/16","id":162375600,"number":16,"title":"parse multiple challenges when passing true to parse","user":{"login":"jdiamond","id":110538,"avatar_url":"https://avatars.githubusercontent.com/u/110538?v=3","gravatar_id":"","url":"https://api.github.com/users/jdiamond","html_url":"https://github.com/jdiamond","followers_url":"https://api.github.com/users/jdiamond/followers","following_url":"https://api.github.com/users/jdiamond/following{/other_user}","gists_url":"https://api.github.com/users/jdiamond/gists{/gist_id}","starred_url":"https://api.github.com/users/jdiamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdiamond/subscriptions","organizations_url":"https://api.github.com/users/jdiamond/orgs","repos_url":"https://api.github.com/users/jdiamond/repos","events_url":"https://api.github.com/users/jdiamond/events{/privacy}","received_events_url":"https://api.github.com/users/jdiamond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-27T05:18:20Z","updated_at":"2016-07-01T03:00:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/izaakschroeder/auth-header/pulls/16","html_url":"https://github.com/izaakschroeder/auth-header/pull/16","diff_url":"https://github.com/izaakschroeder/auth-header/pull/16.diff","patch_url":"https://github.com/izaakschroeder/auth-header/pull/16.patch"},"body":"This adds support for parsing multiple challenges in a single `WWW-Authenticate` header.\r\n\r\nIt assumes tokens don't appear in challenges. When the regex matches a token with no value, it assumes that token is really the scheme for the next challenge.\r\n\r\nSince the new behavior of returning an array instead of a single object isn't triggered unless passing in `true`, I think it can be considered backwards compatible."},"comment":{"url":"https://api.github.com/repos/izaakschroeder/auth-header/issues/comments/229842851","html_url":"https://github.com/izaakschroeder/auth-header/pull/16#issuecomment-229842851","issue_url":"https://api.github.com/repos/izaakschroeder/auth-header/issues/16","id":229842851,"user":{"login":"jdiamond","id":110538,"avatar_url":"https://avatars.githubusercontent.com/u/110538?v=3","gravatar_id":"","url":"https://api.github.com/users/jdiamond","html_url":"https://github.com/jdiamond","followers_url":"https://api.github.com/users/jdiamond/followers","following_url":"https://api.github.com/users/jdiamond/following{/other_user}","gists_url":"https://api.github.com/users/jdiamond/gists{/gist_id}","starred_url":"https://api.github.com/users/jdiamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdiamond/subscriptions","organizations_url":"https://api.github.com/users/jdiamond/orgs","repos_url":"https://api.github.com/users/jdiamond/repos","events_url":"https://api.github.com/users/jdiamond/events{/privacy}","received_events_url":"https://api.github.com/users/jdiamond/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T03:00:43Z","updated_at":"2016-07-01T03:00:43Z","body":"The comments in that second link are where I got the idea for how to detect the next challenge.\r\n\r\nIf you like, I could move the new behavior into a new method. I think the boolean argument might be a bit too subtle."}}
{"actor":{"display_login":"jdiamond"}}