{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/320","repository_url":"https://api.github.com/repos/Esri/resource-proxy","labels_url":"https://api.github.com/repos/Esri/resource-proxy/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/Esri/resource-proxy/issues/320/comments","events_url":"https://api.github.com/repos/Esri/resource-proxy/issues/320/events","html_url":"https://github.com/Esri/resource-proxy/issues/320","id":116819852,"number":320,"title":"Portal 10.3 error 498 using DotNet proxy","user":{"login":"pamrichmond","id":4450069,"avatar_url":"https://avatars.githubusercontent.com/u/4450069?v=3","gravatar_id":"","url":"https://api.github.com/users/pamrichmond","html_url":"https://github.com/pamrichmond","followers_url":"https://api.github.com/users/pamrichmond/followers","following_url":"https://api.github.com/users/pamrichmond/following{/other_user}","gists_url":"https://api.github.com/users/pamrichmond/gists{/gist_id}","starred_url":"https://api.github.com/users/pamrichmond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamrichmond/subscriptions","organizations_url":"https://api.github.com/users/pamrichmond/orgs","repos_url":"https://api.github.com/users/pamrichmond/repos","events_url":"https://api.github.com/users/pamrichmond/events{/privacy}","received_events_url":"https://api.github.com/users/pamrichmond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-13T18:12:21Z","updated_at":"2016-03-08T00:01:30Z","closed_at":null,"body":"Using Federated Portal 10.3 with DotNet proxy on application authentication, we are getting an error code 498 when trying to access a secure map service that was created with the same account as the registered app. I verified that the clientId and clientSecret (appId and appSecret) are valid. ArcGIS and Portal are on the same server. In case it is a factor, the web adapter was changed from \"arcgis\" to \"portal\", so logging in to Portal and the oAuth path start with `https://myservername/portal` rather than `https://myservername/arcgis`, but the map services still reference `https://myservername/arcgis`. \r\n\r\nError:\r\n`dojo.io.script.jsonp_dojoIoScript1._jsonpCallback({\"error\":{\"code\":498,\"message\":\"Invalid Token\",\"details\":[]}});`\r\n\r\nproxy.config:\r\n`<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n<ProxyConfig allowedReferers=\"*\"\r\n             mustMatch=\"true\">\r\n    <serverUrls>\r\n        <serverUrl url=\"https://myservername\"\r\n\t\t\tclientId=\"xxx\"\r\n\t\t\tclientSecret=\"xxx\"\r\n\t\t\toauth2Endpoint=\"https://myservername/portal/sharing/rest/oauth2/\"\r\n            matchAll=\"true\"/>\r\n    </serverUrls>\r\n</ProxyConfig>`\r\n\r\nIs there a way to enable detailed logging or debugging? I'm not familiar with ASP (it's the only ESRI proxy format I can use on our server). The logFile option doesn't provide detailed logging."},"comment":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/comments/193514662","html_url":"https://github.com/Esri/resource-proxy/issues/320#issuecomment-193514662","issue_url":"https://api.github.com/repos/Esri/resource-proxy/issues/320","id":193514662,"user":{"login":"GISSupport","id":8309519,"avatar_url":"https://avatars.githubusercontent.com/u/8309519?v=3","gravatar_id":"","url":"https://api.github.com/users/GISSupport","html_url":"https://github.com/GISSupport","followers_url":"https://api.github.com/users/GISSupport/followers","following_url":"https://api.github.com/users/GISSupport/following{/other_user}","gists_url":"https://api.github.com/users/GISSupport/gists{/gist_id}","starred_url":"https://api.github.com/users/GISSupport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GISSupport/subscriptions","organizations_url":"https://api.github.com/users/GISSupport/orgs","repos_url":"https://api.github.com/users/GISSupport/repos","events_url":"https://api.github.com/users/GISSupport/events{/privacy}","received_events_url":"https://api.github.com/users/GISSupport/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T00:01:30Z","updated_at":"2016-03-08T00:01:30Z","body":"Thanks for the update.\r\n\r\nI guess another option is to add the Identity Manager to our JS code and add the token management calls to our .Net code ... unless the issue is something at a more fundamental level?"}}