{"action":"created","issue":{"url":"https://api.github.com/repos/humanmade/Mercator/issues/48","repository_url":"https://api.github.com/repos/humanmade/Mercator","labels_url":"https://api.github.com/repos/humanmade/Mercator/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/humanmade/Mercator/issues/48/comments","events_url":"https://api.github.com/repos/humanmade/Mercator/issues/48/events","html_url":"https://github.com/humanmade/Mercator/issues/48","id":72141216,"number":48,"title":"Unable to login if single sign-on is disabled","user":{"login":"simonmcwhinnie","id":4818943,"avatar_url":"https://avatars.githubusercontent.com/u/4818943?v=3","gravatar_id":"","url":"https://api.github.com/users/simonmcwhinnie","html_url":"https://github.com/simonmcwhinnie","followers_url":"https://api.github.com/users/simonmcwhinnie/followers","following_url":"https://api.github.com/users/simonmcwhinnie/following{/other_user}","gists_url":"https://api.github.com/users/simonmcwhinnie/gists{/gist_id}","starred_url":"https://api.github.com/users/simonmcwhinnie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonmcwhinnie/subscriptions","organizations_url":"https://api.github.com/users/simonmcwhinnie/orgs","repos_url":"https://api.github.com/users/simonmcwhinnie/repos","events_url":"https://api.github.com/users/simonmcwhinnie/events{/privacy}","received_events_url":"https://api.github.com/users/simonmcwhinnie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/humanmade/Mercator/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-30T12:15:01Z","updated_at":"2016-02-26T17:58:49Z","closed_at":null,"body":"Whenever I disable the single sign on through the filter\r\n```\r\nadd_filter( 'mercator.sso.enabled', '__return_false' );\r\n```\r\nI tracked down the cause of this to be the fact that the COOKIE_DOMAIN isn't defined as including something like \r\n```\r\n$dm_domain = $_SERVER[ 'HTTP_HOST' ];\r\ndefine( 'COOKIE_DOMAIN', $dm_domain );\r\n```\r\nallows it to work again. "},"comment":{"url":"https://api.github.com/repos/humanmade/Mercator/issues/comments/189396564","html_url":"https://github.com/humanmade/Mercator/issues/48#issuecomment-189396564","issue_url":"https://api.github.com/repos/humanmade/Mercator/issues/48","id":189396564,"user":{"login":"robrecord","id":38916,"avatar_url":"https://avatars.githubusercontent.com/u/38916?v=3","gravatar_id":"","url":"https://api.github.com/users/robrecord","html_url":"https://github.com/robrecord","followers_url":"https://api.github.com/users/robrecord/followers","following_url":"https://api.github.com/users/robrecord/following{/other_user}","gists_url":"https://api.github.com/users/robrecord/gists{/gist_id}","starred_url":"https://api.github.com/users/robrecord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robrecord/subscriptions","organizations_url":"https://api.github.com/users/robrecord/orgs","repos_url":"https://api.github.com/users/robrecord/repos","events_url":"https://api.github.com/users/robrecord/events{/privacy}","received_events_url":"https://api.github.com/users/robrecord/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T17:58:48Z","updated_at":"2016-02-26T17:58:48Z","body":"It appears to work for me, after first logging in to network.com/wp-admin\n\nThe sites in the dropdown all have subdomain URLs, but it works okay and doesn't ask me to log in again. which is surprising as I thought I had disabled SSO in sunrise.php.. or maybe I'm doing it wrong.\n\nWould be keen to find any bugs ahead of time so if there's some refinement I should make in order to see the bug, please let me know. Thanks\n\n-- \nRob\n\nhttp://robrecord.com | +44 (0) 7535 271 502\n\n> On 26 Feb 2016, at 16:26, Seth Carstens <notifications@github.com> wrote:\n> \n> @robrecord <https://github.com/robrecord> have you tried navigation between your sites using the wp-admin bar dropdown? this is where the problem starts.\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/humanmade/Mercator/issues/48#issuecomment-189355749>.\n> \n\n"}}