{"action":"created","issue":{"url":"https://api.github.com/repos/openspending/openspending/issues/1238","repository_url":"https://api.github.com/repos/openspending/openspending","labels_url":"https://api.github.com/repos/openspending/openspending/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/openspending/openspending/issues/1238/comments","events_url":"https://api.github.com/repos/openspending/openspending/issues/1238/events","html_url":"https://github.com/openspending/openspending/issues/1238","id":230366832,"number":1238,"title":"OS-packager: Login Button not working properly on local instance","user":{"login":"skarampatakis","id":2419820,"avatar_url":"https://avatars3.githubusercontent.com/u/2419820?v=3","gravatar_id":"","url":"https://api.github.com/users/skarampatakis","html_url":"https://github.com/skarampatakis","followers_url":"https://api.github.com/users/skarampatakis/followers","following_url":"https://api.github.com/users/skarampatakis/following{/other_user}","gists_url":"https://api.github.com/users/skarampatakis/gists{/gist_id}","starred_url":"https://api.github.com/users/skarampatakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skarampatakis/subscriptions","organizations_url":"https://api.github.com/users/skarampatakis/orgs","repos_url":"https://api.github.com/users/skarampatakis/repos","events_url":"https://api.github.com/users/skarampatakis/events{/privacy}","received_events_url":"https://api.github.com/users/skarampatakis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-22T11:33:20Z","updated_at":"2017-05-24T15:28:30Z","closed_at":null,"body":"Hi, I have installed os-packager locally. I successfully run the dev server and made the appropriate mapping of a sample csv file. At the end, in order to publish my data I have to push the \"Login to Publish\" button. When I click on it, it opens a new tab on my browser but then the tab closes immediately. The same happens with the top right login button. I think it is supposed to redirect me to the default openspending platform to authenticate myself. Is it something wrong with my configuration or it is a bug? "},"comment":{"url":"https://api.github.com/repos/openspending/openspending/issues/comments/303760119","html_url":"https://github.com/openspending/openspending/issues/1238#issuecomment-303760119","issue_url":"https://api.github.com/repos/openspending/openspending/issues/1238","id":303760119,"user":{"login":"skarampatakis","id":2419820,"avatar_url":"https://avatars3.githubusercontent.com/u/2419820?v=3","gravatar_id":"","url":"https://api.github.com/users/skarampatakis","html_url":"https://github.com/skarampatakis","followers_url":"https://api.github.com/users/skarampatakis/followers","following_url":"https://api.github.com/users/skarampatakis/following{/other_user}","gists_url":"https://api.github.com/users/skarampatakis/gists{/gist_id}","starred_url":"https://api.github.com/users/skarampatakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skarampatakis/subscriptions","organizations_url":"https://api.github.com/users/skarampatakis/orgs","repos_url":"https://api.github.com/users/skarampatakis/repos","events_url":"https://api.github.com/users/skarampatakis/events{/privacy}","received_events_url":"https://api.github.com/users/skarampatakis/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T15:28:30Z","updated_at":"2017-05-24T15:28:30Z","body":"@akariv \r\n\r\n> Seems like the base url is not configured correctly - OS_PACKAGER_BASE_PATH should not be set, or have the correct value based on your setup.\r\n\r\nWhat is the correct value? \r\n\r\nIf I understand correctly there is nowhere defined as an env variable as seen from my process.env output. So the packager uses the DEFAULT_BASE_PATH. \r\n\r\nAs you see I have set\r\n```\r\nconst DEFAULT_BASE_PATH = '/packager/';\r\n```\r\n\r\nBelow you can see also my apache settings\r\n\r\n```\r\n<VirtualHost *:80>\r\n\r\n    ProxyPreserveHost On\r\n\t\r\n    ProxyPass /v1/ http://localhost:8000/v1/\r\n    ProxyPassReverse /v1/ http://localhost:8000/v1/\r\n\r\n    ProxyPass /packager/ http://localhost:5000/\r\n    ProxyPassReverse /packager/ http://localhost:5000/\r\n\r\n    <Proxy *>\r\n        allow from all\r\n    </Proxy>\r\n    ServerName bioweb.math.auth.gr\r\n\r\n</VirtualHost>\r\n```\r\n\r\nIs there something else I should look for? I still get redirected incorrectly to /logged-in instead of /packager/logged-in. Or this is something that is configurable through OS Conductor as you said?\r\n\r\nI have tried also to use the dev.openspending.org but then I am redirected to dev.openspending.orglogged-in and fails. Somehow the slash is cut out. If you have any hint here...\r\n\r\nAbout the two solutions you are suggesting, I see the second one as a problem for the OBEU platform purposes. If someone deploy his own instance, he would need to contact you in order to allow his domain on your auth service. It is OK for testing purposes but I have my long-term concerns.  \r\n\r\nSo the follow up question would be what are the requirements of setting up the whole OS platform? Would it be a big overhead for the platform, resource and effort wise, in order to have a user friendly data modeling interface?   \r\n"}}
{"actor":{"display_login":"skarampatakis"}}