{"action":"created","issue":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/355","labels_url":"https://api.github.com/repos/cmv/cmv-app/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/cmv/cmv-app/issues/355/comments","events_url":"https://api.github.com/repos/cmv/cmv-app/issues/355/events","html_url":"https://github.com/cmv/cmv-app/issues/355","id":55069115,"number":355,"title":"Need help in getting proxy to work with secured service.  We have set a proxy using the code provided and can't get it to pass or accept credentials username and password. Is there further documentaition available or additional solutions.","user":{"login":"rkoelpin","id":3074883,"avatar_url":"https://avatars.githubusercontent.com/u/3074883?v=3","gravatar_id":"","url":"https://api.github.com/users/rkoelpin","html_url":"https://github.com/rkoelpin","followers_url":"https://api.github.com/users/rkoelpin/followers","following_url":"https://api.github.com/users/rkoelpin/following{/other_user}","gists_url":"https://api.github.com/users/rkoelpin/gists{/gist_id}","starred_url":"https://api.github.com/users/rkoelpin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkoelpin/subscriptions","organizations_url":"https://api.github.com/users/rkoelpin/orgs","repos_url":"https://api.github.com/users/rkoelpin/repos","events_url":"https://api.github.com/users/rkoelpin/events{/privacy}","received_events_url":"https://api.github.com/users/rkoelpin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-21T19:59:41Z","updated_at":"2015-01-21T20:55:38Z","closed_at":null,"body":"We have set a proxy using the code provided and can't get it to pass or accept credentials username and password. Is there further documentaition available or additional solutions.  Thanks."},"comment":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/comments/70919705","html_url":"https://github.com/cmv/cmv-app/issues/355#issuecomment-70919705","issue_url":"https://api.github.com/repos/cmv/cmv-app/issues/355","id":70919705,"user":{"login":"rkoelpin","id":3074883,"avatar_url":"https://avatars.githubusercontent.com/u/3074883?v=3","gravatar_id":"","url":"https://api.github.com/users/rkoelpin","html_url":"https://github.com/rkoelpin","followers_url":"https://api.github.com/users/rkoelpin/followers","following_url":"https://api.github.com/users/rkoelpin/following{/other_user}","gists_url":"https://api.github.com/users/rkoelpin/gists{/gist_id}","starred_url":"https://api.github.com/users/rkoelpin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkoelpin/subscriptions","organizations_url":"https://api.github.com/users/rkoelpin/orgs","repos_url":"https://api.github.com/users/rkoelpin/repos","events_url":"https://api.github.com/users/rkoelpin/events{/privacy}","received_events_url":"https://api.github.com/users/rkoelpin/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T20:55:38Z","updated_at":"2015-01-21T20:55:38Z","body":"Thanks, is there any chance the proxy can be on another machine (with CORS enabled?) we are using the security store (users, roles) from another application for arcserver in production?\r\n\r\nWill try the suggested changes on our dev.\r\n\r\n\r\n\r\nFrom: Trevor Masters [mailto:notifications@github.com]\r\nSent: Wednesday, January 21, 2015 3:52 PM\r\nTo: cmv/cmv-app\r\nCc: Koelpin, Roger\r\nSubject: Re: [cmv-app] Need help in getting proxy to work with secured service. We have set a proxy using the code provided and can't get it to pass or accept credentials username and password. Is there further documentaition available or additional solutions....\r\n\r\n\r\nI just checked my proxy and it says\r\n\r\n * DotNet proxy client.\r\n\r\n *\r\n\r\n * Version 1.1 beta\r\n\r\n * See https://github.com/Esri/resource-proxy for more information.\r\n\r\nI vaguely recall changing this from the default released with CMV, but can't remember why. My proxy.config looks like\r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n\r\n<ProxyConfig allowedReferers=\"*\"\r\n\r\n             mustMatch=\"true\">\r\n\r\n  <serverUrls>\r\n\r\n    <serverUrl url=\"https://server/adaptor/rest/services/internal\"\r\n\r\n         matchAll=\"true\"\r\n\r\n         dynamicToken=\"true\"\r\n\r\n         host=\"server\"\r\n\r\n         username=\"user\"\r\n\r\n         password=\"password\" />\r\n\r\n  </serverUrls>\r\n\r\n</ProxyConfig>\r\n\r\nAnd my viewer.js has the following lines at the top of the function... I could never get it working by setting alwaysUseProxy = false and have always explicitly set any rules.\r\n\r\n    // url to your proxy page, must be on same machine hosting you app. See proxy folder for readme.\r\n\r\n    esriConfig.defaults.io.proxyUrl = 'proxy/proxy.ashx';\r\n\r\n    esriConfig.defaults.io.alwaysUseProxy = false;\r\n\r\n    esriConfig.defaults.io.timeout = 150000;\r\n\r\n\r\n\r\n    urlUtils.addProxyRule({\r\n\r\n        urlPrefix: 'server/adaptor/rest/services',\r\n\r\n        proxyUrl: 'proxy/proxy.ashx'\r\n\r\n    });\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/cmv/cmv-app/issues/355#issuecomment-70918991>.\r\n"}}