{"action":"created","issue":{"url":"https://api.github.com/repos/zfcampus/zf-mvc-auth/issues/65","labels_url":"https://api.github.com/repos/zfcampus/zf-mvc-auth/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/zfcampus/zf-mvc-auth/issues/65/comments","events_url":"https://api.github.com/repos/zfcampus/zf-mvc-auth/issues/65/events","html_url":"https://github.com/zfcampus/zf-mvc-auth/issues/65","id":70230084,"number":65,"title":"Multiple authentication adapters BC break","user":{"login":"stefanotorresi","id":2952427,"avatar_url":"https://avatars.githubusercontent.com/u/2952427?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanotorresi","html_url":"https://github.com/stefanotorresi","followers_url":"https://api.github.com/users/stefanotorresi/followers","following_url":"https://api.github.com/users/stefanotorresi/following{/other_user}","gists_url":"https://api.github.com/users/stefanotorresi/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanotorresi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanotorresi/subscriptions","organizations_url":"https://api.github.com/users/stefanotorresi/orgs","repos_url":"https://api.github.com/users/stefanotorresi/repos","events_url":"https://api.github.com/users/stefanotorresi/events{/privacy}","received_events_url":"https://api.github.com/users/stefanotorresi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-22T20:43:37Z","updated_at":"2015-04-27T12:51:16Z","closed_at":null,"body":"Before 1.1 it was possible to configure both http and oauth2 authentication adapters globally, as `DefaultAuthenticationListener` inferred the type to use from the request.\r\n\r\nWith 1.1, not only it's not possible anymore (because it's deemed as an \"ambiguous case\"), but it's neither possible to assign one custom adapter for every resource, nor multiple adapters for one resource.\r\n\r\nIs the only solution to write my custom adapter and manually assign it to *every* resource? Couldn't we move [this block](https://github.com/zfcampus/zf-mvc-auth/blob/master/src/Authentication/DefaultAuthenticationListener.php#L166-L173) down and use the request before the map?"},"comment":{"url":"https://api.github.com/repos/zfcampus/zf-mvc-auth/issues/comments/96638816","html_url":"https://github.com/zfcampus/zf-mvc-auth/issues/65#issuecomment-96638816","issue_url":"https://api.github.com/repos/zfcampus/zf-mvc-auth/issues/65","id":96638816,"user":{"login":"weierophinney","id":25943,"avatar_url":"https://avatars.githubusercontent.com/u/25943?v=3","gravatar_id":"","url":"https://api.github.com/users/weierophinney","html_url":"https://github.com/weierophinney","followers_url":"https://api.github.com/users/weierophinney/followers","following_url":"https://api.github.com/users/weierophinney/following{/other_user}","gists_url":"https://api.github.com/users/weierophinney/gists{/gist_id}","starred_url":"https://api.github.com/users/weierophinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weierophinney/subscriptions","organizations_url":"https://api.github.com/users/weierophinney/orgs","repos_url":"https://api.github.com/users/weierophinney/repos","events_url":"https://api.github.com/users/weierophinney/events{/privacy}","received_events_url":"https://api.github.com/users/weierophinney/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T12:51:16Z","updated_at":"2015-04-27T12:51:16Z","body":"@stefanotorresi Also, zfcampus/zf-oauth2#93 and zfcampus/zf-mvc-auth#67 *might* address your use case of having a global, fallback adapter, and API-specific overrides."}}