{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/3075","repository_url":"https://api.github.com/repos/hapijs/hapi","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/3075/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/3075/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/3075/events","html_url":"https://github.com/hapijs/hapi/pull/3075","id":139281915,"number":3075,"title":"Include an option to parse payload before authenticate handler is triggered","user":{"login":"mcastany","id":1765468,"avatar_url":"https://avatars.githubusercontent.com/u/1765468?v=3","gravatar_id":"","url":"https://api.github.com/users/mcastany","html_url":"https://github.com/mcastany","followers_url":"https://api.github.com/users/mcastany/followers","following_url":"https://api.github.com/users/mcastany/following{/other_user}","gists_url":"https://api.github.com/users/mcastany/gists{/gist_id}","starred_url":"https://api.github.com/users/mcastany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcastany/subscriptions","organizations_url":"https://api.github.com/users/mcastany/orgs","repos_url":"https://api.github.com/users/mcastany/repos","events_url":"https://api.github.com/users/mcastany/events{/privacy}","received_events_url":"https://api.github.com/users/mcastany/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-08T13:45:13Z","updated_at":"2016-03-08T17:48:29Z","closed_at":"2016-03-08T17:48:29Z","pull_request":{"url":"https://api.github.com/repos/hapijs/hapi/pulls/3075","html_url":"https://github.com/hapijs/hapi/pull/3075","diff_url":"https://github.com/hapijs/hapi/pull/3075.diff","patch_url":"https://github.com/hapijs/hapi/pull/3075.patch"},"body":"This will allow us to have `request.payload` inside the `authenticate` handler when we set the following config\r\n\r\n```\r\n{ \r\n  config : { \r\n    auth : { \r\n      strategy : 'foo',\r\n      parsePayloadBeforeAuth : true \r\n    } \r\n  } \r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/193887427","html_url":"https://github.com/hapijs/hapi/pull/3075#issuecomment-193887427","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/3075","id":193887427,"user":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T17:48:29Z","updated_at":"2016-03-08T17:48:29Z","body":"@mcastany  Sorry but I am no going to make this option available. The request lifecycle must never change as this will create express-like middleware hell.\r\n\r\nIf you can't work with the rules available via the auth API, just write your own extension that runs after payload is parsed.\r\n\r\n@devinivy no need for a new API, you can just create an auth scheme that doesn't actually do anything and call `server.auth.test()` with it to get access to the rest of the auth features."}}