{"action":"opened","issue":{"url":"https://api.github.com/repos/evilwalrus/Blubber/issues/33","labels_url":"https://api.github.com/repos/evilwalrus/Blubber/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/evilwalrus/Blubber/issues/33/comments","events_url":"https://api.github.com/repos/evilwalrus/Blubber/issues/33/events","html_url":"https://github.com/evilwalrus/Blubber/issues/33","id":67826484,"number":33,"title":"Allow multiple auths for App::auth()","user":{"login":"evilwalrus","id":779573,"avatar_url":"https://avatars.githubusercontent.com/u/779573?v=3","gravatar_id":"","url":"https://api.github.com/users/evilwalrus","html_url":"https://github.com/evilwalrus","followers_url":"https://api.github.com/users/evilwalrus/followers","following_url":"https://api.github.com/users/evilwalrus/following{/other_user}","gists_url":"https://api.github.com/users/evilwalrus/gists{/gist_id}","starred_url":"https://api.github.com/users/evilwalrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilwalrus/subscriptions","organizations_url":"https://api.github.com/users/evilwalrus/orgs","repos_url":"https://api.github.com/users/evilwalrus/repos","events_url":"https://api.github.com/users/evilwalrus/events{/privacy}","received_events_url":"https://api.github.com/users/evilwalrus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/evilwalrus/Blubber/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/evilwalrus/Blubber/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/evilwalrus/Blubber/labels/essential","name":"essential","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"evilwalrus","id":779573,"avatar_url":"https://avatars.githubusercontent.com/u/779573?v=3","gravatar_id":"","url":"https://api.github.com/users/evilwalrus","html_url":"https://github.com/evilwalrus","followers_url":"https://api.github.com/users/evilwalrus/followers","following_url":"https://api.github.com/users/evilwalrus/following{/other_user}","gists_url":"https://api.github.com/users/evilwalrus/gists{/gist_id}","starred_url":"https://api.github.com/users/evilwalrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilwalrus/subscriptions","organizations_url":"https://api.github.com/users/evilwalrus/orgs","repos_url":"https://api.github.com/users/evilwalrus/repos","events_url":"https://api.github.com/users/evilwalrus/events{/privacy}","received_events_url":"https://api.github.com/users/evilwalrus/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-04-11T19:47:36Z","updated_at":"2015-04-11T19:47:36Z","closed_at":null,"body":"When defining a method callback, allow auth() to accept multiple auth hooks, not just one.  This will essentially be a fallback system.\r\n\r\nExample\r\n```php\r\n->auth(['auth.basic', 'auth.oauth2']);\r\n```\r\n\r\nAbove, if auth.basic fails, then it will fall to auth.oauth2 to get the proper credentials.  If the chain of hooks fails, then it would do so gracefully as it currently already does.  This is just a matter of changing the data type for auth() and running a simple loop if we have an array of auth hooks."}}