{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/891","repository_url":"https://api.github.com/repos/electron-userland/electron-builder","labels_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/891/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/891/comments","events_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/891/events","html_url":"https://github.com/electron-userland/electron-builder/issues/891","id":188055959,"number":891,"title":"NSIS Auto Update: Bintray Auth","user":{"login":"naderhen","id":99392,"avatar_url":"https://avatars.githubusercontent.com/u/99392?v=3","gravatar_id":"","url":"https://api.github.com/users/naderhen","html_url":"https://github.com/naderhen","followers_url":"https://api.github.com/users/naderhen/followers","following_url":"https://api.github.com/users/naderhen/following{/other_user}","gists_url":"https://api.github.com/users/naderhen/gists{/gist_id}","starred_url":"https://api.github.com/users/naderhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naderhen/subscriptions","organizations_url":"https://api.github.com/users/naderhen/orgs","repos_url":"https://api.github.com/users/naderhen/repos","events_url":"https://api.github.com/users/naderhen/events{/privacy}","received_events_url":"https://api.github.com/users/naderhen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-08T17:36:59Z","updated_at":"2016-11-08T18:44:28Z","closed_at":null,"body":"<!-- Which version of electron-builder are you using? -->\r\n* **Version**: 7.15.12\r\n\r\nelectron-auto-updater@0.3.1\r\n\r\n<!-- What target are you building for? -->\r\n* **Target**: Windows 7\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n\r\nThank you so much for all of the recent work on the NSIS Installer / Auto Update flow. I'm able to successfully build and install my Electron app with Windows 7 as the target platform but had a question regarding authentication during the auto-update process.\r\n\r\nIt seems that during build, if the `BT_TOKEN` env var is set, publishes work against my private Bintray Organization. This is the relevant portion of my package.json:\r\n\r\n```\r\n\"build\": {\r\n    \"app-bundle-id\": \"fk.fk.fk\",\r\n    \"app-category-type\": \"fk.fk.fk\",\r\n    \"iconUrl\": \"http://someurl.ico\",\r\n    \"publish\": {\r\n      \"provider\": \"bintray\",\r\n      \"repo\": \"my-private-repo\",\r\n      \"user\": \"nader@org\",\r\n      \"package\": \"my-private-package\",\r\n      \"owner\": \"nader\"\r\n    },\r\n    \"mac\": {},\r\n    \"win\": {\r\n      \"target\": \"nsis\",\r\n      \"publish\": {\r\n        \"provider\": \"bintray\",\r\n        \"repo\": \"my-private-repo\",\r\n        \"user\": \"nader@org\",\r\n        \"package\": \"my-private-package\",\r\n        \"owner\": \"nader\"\r\n      }\r\n    }\r\n  },\r\n  \"directories\": {\r\n    \"app\": \"electron\",\r\n    \"output\": \"release\"\r\n  }\r\n```\r\n\r\nHowever, when the auto-update module attempts to check for updates I see the following error:\r\n\r\n`Error: No latest version, please ensure that user, package and repository correctly configured. Or at least one version is published. ..... Please double check that your authentication token is correct. Due to security reasons actual status maybe not reported, but 404`\r\n\r\nAm I missing something that would allow the auto updater to make authenticated requests to Bintray or is that not supported at this time?\r\n\r\nThanks so much for your help, please let me know if there is any more information I can provide."},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/comments/259222786","html_url":"https://github.com/electron-userland/electron-builder/issues/891#issuecomment-259222786","issue_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/891","id":259222786,"user":{"login":"develar","id":350686,"avatar_url":"https://avatars.githubusercontent.com/u/350686?v=3","gravatar_id":"","url":"https://api.github.com/users/develar","html_url":"https://github.com/develar","followers_url":"https://api.github.com/users/develar/followers","following_url":"https://api.github.com/users/develar/following{/other_user}","gists_url":"https://api.github.com/users/develar/gists{/gist_id}","starred_url":"https://api.github.com/users/develar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/develar/subscriptions","organizations_url":"https://api.github.com/users/develar/orgs","repos_url":"https://api.github.com/users/develar/repos","events_url":"https://api.github.com/users/develar/events{/privacy}","received_events_url":"https://api.github.com/users/develar/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T18:44:28Z","updated_at":"2016-11-08T18:44:28Z","body":"Please see https://www.jfrog.com/article/private-repositories/ and https://www.jfrog.com/article/access-keys-and-entitlements/ I didn't read it completely, but it seems it is what you want.\r\n\r\n> Generic Provider as that has a more flexible api\r\n\r\nMajor drawback — you need to maintain own server and own API. If you already pay *** 150$ per month — Bintray is ok for your needs.\r\n\r\nI will check.\r\n\r\n> Hypothetically if we wanted to restrict the auto-update\r\nfunctionality to authenticated users\r\n\r\nDo you want to provide some token to users? i.e. user can configure access to some channel using some credentials?"}}
{"actor":{"display_login":"develar"}}