{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1644","repository_url":"https://api.github.com/repos/couchbase/sync_gateway","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1644/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1644/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1644/events","html_url":"https://github.com/couchbase/sync_gateway/issues/1644","id":139511809,"number":1644,"title":"User unable to pull replicate","user":{"login":"ajres","id":7745210,"avatar_url":"https://avatars.githubusercontent.com/u/7745210?v=3","gravatar_id":"","url":"https://api.github.com/users/ajres","html_url":"https://github.com/ajres","followers_url":"https://api.github.com/users/ajres/followers","following_url":"https://api.github.com/users/ajres/following{/other_user}","gists_url":"https://api.github.com/users/ajres/gists{/gist_id}","starred_url":"https://api.github.com/users/ajres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajres/subscriptions","organizations_url":"https://api.github.com/users/ajres/orgs","repos_url":"https://api.github.com/users/ajres/repos","events_url":"https://api.github.com/users/ajres/events{/privacy}","received_events_url":"https://api.github.com/users/ajres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-09T08:38:14Z","updated_at":"2016-03-10T16:09:01Z","closed_at":null,"body":"User is able to push replicate but not pull replicate.\r\n\r\nThey have tried using curl commands which work on a test install on MAC OS X\r\n\r\nOriginal forum post is here:\r\n\r\nhttps://forums.couchbase.com/t/couchbase-sync-gateway-pulling-issue-for-authenticated-users/7276\r\n\r\nI was unable to retrieve the attachments from the forum, requested OP to attach files to this ticket."},"comment":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/comments/194927871","html_url":"https://github.com/couchbase/sync_gateway/issues/1644#issuecomment-194927871","issue_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1644","id":194927871,"user":{"login":"ajres","id":7745210,"avatar_url":"https://avatars.githubusercontent.com/u/7745210?v=3","gravatar_id":"","url":"https://api.github.com/users/ajres","html_url":"https://github.com/ajres","followers_url":"https://api.github.com/users/ajres/followers","following_url":"https://api.github.com/users/ajres/following{/other_user}","gists_url":"https://api.github.com/users/ajres/gists{/gist_id}","starred_url":"https://api.github.com/users/ajres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajres/subscriptions","organizations_url":"https://api.github.com/users/ajres/orgs","repos_url":"https://api.github.com/users/ajres/repos","events_url":"https://api.github.com/users/ajres/events{/privacy}","received_events_url":"https://api.github.com/users/ajres/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T16:09:01Z","updated_at":"2016-03-10T16:09:01Z","body":"@manura \r\n\r\nIt's good that you are now working, I don't have a definitive answer as to why you were seeing issues previously, other than you possibly had hidden control characters in your SG config that caused the user block to be mis interpreted.\r\n\r\nIf you still have your original Windows SG config file you could attach it to the ticket and I can take a look (cut and pasting the content will likely loose any control characters if they are there).\r\n\r\nBy default the SG interfaces will bind to 127.0.0.1, if you need remote access then add the following properties to the top level of your SG config, setting the interface IP you want them to bind to. \r\n```\r\n\"interface\":\"0.0.0.0:4984\",\r\n\"adminInterface\":\"0.0.0.0:4985\",\r\n```\r\nIP 0.0.0.0 will bind to all available interfaces which is useful during development but not secure.\r\nUsually you will want to bind the adminInterface to an IP that is not accessible via public networks.\r\n\r\nIn production you would not typically add users to the SG config, you would add them via the REST API.\r\n\r\nOne observation, you should set GUEST \"disabled\": true, this will prevent non-authenticated user access.\r\n\r\nUsually you will assign channels to users in the sync function using the access() method, based on the contents of a document.\r\n\r\nThere is documentation about the sync function API [here](http://developer.couchbase.com/documentation/mobile/1.2/develop/guides/sync-gateway/sync-function-api-guide/index.html) \r\n\r\nA guide to channels [here](http://developer.couchbase.com/documentation/mobile/1.2/develop/guides/sync-gateway/channels/index.html)\r\n\r\nThere a number of sample Apps that demonstrate sharing data between users e.g. [ToDoLite-Android](https://github.com/couchbaselabs/ToDoLite-Android.git) it is also available for a number of other languages in the [couchbaselabs GitHub repo](https://github.com/couchbaselabs). The App comes with an SG config file that works with the App and demonstrates many of the sync function features.\r\n\r\nIf you need further assistance with app development please post to the couchbase forum.\r\n"}}