{"action":"created","issue":{"url":"https://api.github.com/repos/dingo/api/issues/694","labels_url":"https://api.github.com/repos/dingo/api/issues/694/labels{/name}","comments_url":"https://api.github.com/repos/dingo/api/issues/694/comments","events_url":"https://api.github.com/repos/dingo/api/issues/694/events","html_url":"https://github.com/dingo/api/issues/694","id":112379989,"number":694,"title":"Basic Auth - where do I configure it?","user":{"login":"sommarnatt","id":6311472,"avatar_url":"https://avatars.githubusercontent.com/u/6311472?v=3","gravatar_id":"","url":"https://api.github.com/users/sommarnatt","html_url":"https://github.com/sommarnatt","followers_url":"https://api.github.com/users/sommarnatt/followers","following_url":"https://api.github.com/users/sommarnatt/following{/other_user}","gists_url":"https://api.github.com/users/sommarnatt/gists{/gist_id}","starred_url":"https://api.github.com/users/sommarnatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sommarnatt/subscriptions","organizations_url":"https://api.github.com/users/sommarnatt/orgs","repos_url":"https://api.github.com/users/sommarnatt/repos","events_url":"https://api.github.com/users/sommarnatt/events{/privacy}","received_events_url":"https://api.github.com/users/sommarnatt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-20T14:22:41Z","updated_at":"2015-10-22T14:22:43Z","closed_at":null,"body":"Been following the guide on setting up Dingo/api on Laravel 5.1.\r\n\r\nI've got a default laravel users table with email and password field and am using postman to try it out.\r\nWorks without auth middleware but when adding api.auth as middleware it gives me a 401.\r\n\r\n> HTTP Basic\r\n> This provider uses the default basic authentication built into Laravel and Lumen. You will need to configure this provider in a service provider or bootstrap file. The second parameter is the identifier used to authenticate.\r\n\r\nCould you give a laravel 5.1 example or point me towards docs?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dingo/api/issues/comments/150239608","html_url":"https://github.com/dingo/api/issues/694#issuecomment-150239608","issue_url":"https://api.github.com/repos/dingo/api/issues/694","id":150239608,"user":{"login":"sommarnatt","id":6311472,"avatar_url":"https://avatars.githubusercontent.com/u/6311472?v=3","gravatar_id":"","url":"https://api.github.com/users/sommarnatt","html_url":"https://github.com/sommarnatt","followers_url":"https://api.github.com/users/sommarnatt/followers","following_url":"https://api.github.com/users/sommarnatt/following{/other_user}","gists_url":"https://api.github.com/users/sommarnatt/gists{/gist_id}","starred_url":"https://api.github.com/users/sommarnatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sommarnatt/subscriptions","organizations_url":"https://api.github.com/users/sommarnatt/orgs","repos_url":"https://api.github.com/users/sommarnatt/repos","events_url":"https://api.github.com/users/sommarnatt/events{/privacy}","received_events_url":"https://api.github.com/users/sommarnatt/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T14:22:43Z","updated_at":"2015-10-22T14:22:43Z","body":"Ok I moved ´Dingo\\Api\\Provider\\LaravelServiceProvider::class´ above the rest of the providers, seems that was in the docs ;) Still nothing.\r\n\r\nOk, seems it works with `return new \\Dingo\\Api\\Auth\\Provider\\Basic($app['auth'], 'email');`\r\n"}}