{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/2039","labels_url":"https://api.github.com/repos/rancher/rancher/issues/2039/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/2039/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/2039/events","html_url":"https://github.com/rancher/rancher/issues/2039","id":106496893,"number":2039,"title":"Failure activating local auth","user":{"login":"markbastiaans","id":7204312,"avatar_url":"https://avatars.githubusercontent.com/u/7204312?v=3","gravatar_id":"","url":"https://api.github.com/users/markbastiaans","html_url":"https://github.com/markbastiaans","followers_url":"https://api.github.com/users/markbastiaans/followers","following_url":"https://api.github.com/users/markbastiaans/following{/other_user}","gists_url":"https://api.github.com/users/markbastiaans/gists{/gist_id}","starred_url":"https://api.github.com/users/markbastiaans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbastiaans/subscriptions","organizations_url":"https://api.github.com/users/markbastiaans/orgs","repos_url":"https://api.github.com/users/markbastiaans/repos","events_url":"https://api.github.com/users/markbastiaans/events{/privacy}","received_events_url":"https://api.github.com/users/markbastiaans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-15T07:19:33Z","updated_at":"2015-09-17T09:50:17Z","closed_at":null,"body":"Great work on getting more authentication options for Rancher!\r\n\r\nI have problems activating local auth. When pressing the \"Enable Local Auth\" button, it fails with a call to `token` and a `401 Unauthorized` error (inspected with Chrome DevTools). Also, after the error, I'm logged in as the user I specified in the local auth settings, and Rancher still prompts me to set up access control.\r\n\r\nRancher version: 0.37\r\nRancher host OS: CoreOS stable (766.3.0)\r\nBrowser: Chrome 46.0.2490.22 beta-m (64-bit) on Windows. No extensions enabled, other browsers produce the same result.\r\n\r\nI can reproduce the problem; a clean copy of Rancher and going straight to setting up local auth produces the same results."},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/141026413","html_url":"https://github.com/rancher/rancher/issues/2039#issuecomment-141026413","issue_url":"https://api.github.com/repos/rancher/rancher/issues/2039","id":141026413,"user":{"login":"slimadvies","id":3720780,"avatar_url":"https://avatars.githubusercontent.com/u/3720780?v=3","gravatar_id":"","url":"https://api.github.com/users/slimadvies","html_url":"https://github.com/slimadvies","followers_url":"https://api.github.com/users/slimadvies/followers","following_url":"https://api.github.com/users/slimadvies/following{/other_user}","gists_url":"https://api.github.com/users/slimadvies/gists{/gist_id}","starred_url":"https://api.github.com/users/slimadvies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimadvies/subscriptions","organizations_url":"https://api.github.com/users/slimadvies/orgs","repos_url":"https://api.github.com/users/slimadvies/repos","events_url":"https://api.github.com/users/slimadvies/events{/privacy}","received_events_url":"https://api.github.com/users/slimadvies/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T09:50:17Z","updated_at":"2015-09-17T09:50:17Z","body":"I had the same problem. I hacked around it by manually changing the setting db values:\r\n``` \r\nmysql> select * from setting;\r\n+----+------------------------------+-------------------------------+\r\n| id | name                         | value                         |\r\n+----+------------------------------+-------------------------------+\r\n|  1 | api.auth.provider.configured | localAuthConfig               |\r\n|  2 | api.security.enabled         | true                          |\r\n|  3 | api.auth.local.access.mode   | restricted                    |\r\n```\r\n\r\nThen I had to go to /static/login and login again.\r\n\r\nthen it works.\r\n"}}