|
POST
|
Muqit, If you follow my instructions in my previous note, you will not need to uninstall server - you just need to stop and restart it in Windows Services.
... View more
01-18-2016
05:51 AM
|
1
|
3
|
3393
|
|
POST
|
Ok, try this: 1 )Stop server (Windows Services >> ArcGIS Server) 2) Make a back-up of the following config files: X:\arcgisserver\config-store\security\security-config.json X:\Program Files\ArcGIS\Server\framework\runtime\tomcat\conf\server.xml 3) Make changes to the config files: X:\arcgisserver\config-store\security\security-config.json "httpEnabled": false, = "httpEnabled": true, X:\Program Files\ArcGIS\Server\framework\runtime\tomcat\conf\server.xml set SSLEnabled="false" I think that's what did it for me, though I'm not positive... If that doesn't work, you can try keeping SSL in the security config json file and set keyAlias="SelfSignedCertificate" for the <Connector> tag in the server config file 4) Restart ArcGIS Server in Windows Services
... View more
01-18-2016
05:34 AM
|
2
|
0
|
3393
|
|
POST
|
I did something similar, if memory serves me correct. There wasn't a way to fix this without modifying some server config files - let me see if I can dig those up...
... View more
01-18-2016
05:22 AM
|
0
|
6
|
3393
|
|
POST
|
Nathaniel, I did some research - it looks like another developer is doing something similar - would this help? ArcGIS JavaScript setRequestPreCallback is partially working? - Geographic Information Systems Stack Exchange Bjorn Svensson indicates that you can add your token to the service URL, and the API will send it. Is that an option for you? I'm still yet stubbing my toes in this area...
... View more
01-14-2016
02:35 PM
|
0
|
3
|
5266
|
|
POST
|
I'm using the ASP.NET proxy - I have custom headers added in the web.config, e.g. <system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Custom-Name" value="MyCustomValue" />
</customHeaders>
</httpProtocol>
</system.webServer> Was this what you're looking to do?
... View more
01-14-2016
02:02 PM
|
0
|
5
|
5266
|
|
BLOG
|
Congrats! Thanks to everyone who contributes to the community - GeoNet is a great resource for providing insight... it has saved me more than once!
... View more
01-13-2016
02:20 PM
|
6
|
0
|
3426
|
|
POST
|
Ah, you know what? The latest proxy resolved the problem (v1.1.0)! It was in plain sight, too - per the changelog, v1.1.0 added: Support for 10.3 tokens. Releases · Esri/resource-proxy · GitHub That must have been the issue - it wasn't able to generate the appropriate 10.3 token using the v 1.0 proxy. Sigh... Thanks again for the help!
... View more
01-12-2016
10:55 AM
|
1
|
0
|
593
|
|
POST
|
I thought I had the latest proxy, but it's using 1.0. I'm going to upgrade the proxy and give it a go.If that doesn't work, I'll start debugging the proxy in VS to see if I can find anything and report my findings. Thanks for helping me!
... View more
01-11-2016
02:30 PM
|
0
|
0
|
4026
|
|
POST
|
Girish, That's what I tried, and I can see the service going through the proxy in Fiddler, but the log-in pop-up still shows. This is true whether or not I have credentials in the proxy config.
... View more
01-11-2016
02:03 PM
|
0
|
3
|
4026
|
|
POST
|
Some more information... I tried setting alwaysUseProxy to true - I see the requests come through in Fiddler with 200s for all map services, including the secured service; however, the map crashes due to the "Proxy is being used for an unsupported service" error on the base map/canvas. By virtue of this, it seems that the proxy is working, but for whatever reason (maybe config?), it's not properly proxying the secured service when alwaysUseProxy is set to default/false. Regardless in either case, I can see console messages for dojo.io.script error Error: Token Required These go away when I comment-out the logic creating and adding the secured service. UPDATE: I tried creating a proxy rule - I see it now being proxied, but the authentication log-in still shows.
... View more
01-11-2016
01:36 PM
|
0
|
5
|
4026
|
|
POST
|
Girish, I tried commenting-out those lines with no luck. I also tried setting it to false and to "with-credentials" - it's still not going through the proxy (I confirmed the JS cache was flushed, so it's using the updated file). Hrmmm...
... View more
01-11-2016
01:20 PM
|
0
|
6
|
4026
|
|
POST
|
Girish, According to Fiddler, it's not going through the proxy, which would explain why credentials aren't supplied. I have confirmed, though, the proxy does work, e.g. print. I can see the requests in fiddler through the proxy. I have the proxy URL set as a relative path in the app: esri.config.defaults.io.proxyUrl = "../MapApp/Proxy/proxy.ashx";
esri.config.defaults.io.alwaysUseProxy = false;
esri.config.defaults.io.useCors = true; The other config values should already default to the values set - I set them this way for clarity.
... View more
01-11-2016
12:50 PM
|
0
|
8
|
4026
|
|
POST
|
This is the companion thread to Application-level token authentication In short, I was successful in creating secured services and authenticating at the application level - somewhat! There's a peculiar behavior I haven't quite nailed-down - maybe someone has experienced this before and has an answer... When I use a cold session, e.g. after clearing cache and restarting the browser, and then load the secured service through the mapping app, I receive an authentication pop-up (which I am trying to avoid). If I enter the correct credentials, I receive the message: Unable to access the authentication service. In the console, the error is reported as a 403: code: Forbidden,message:"Proxy is being used for an unsupported service: https://mygisserver/arcgis/tokens/"}}" If I navigate to the REST service in the browser, I am prompted to enter credentials, which authenticates successfully. In the same browser, once the session is established, I can then refresh (ctrl-F5) and see the secured layer without receiving an authentication window. This is the behavior I'm seeking - any user can see the secured service in context of the mapping app, without having to manually enter credentials. Any ideas as to what would cause this? I am using the proxy from the Esri GitHub. I am also keeping the referrer open-ended for now, until I resolve this issue. I don't believe I'm doing anything crazy - right now, I'm just undergoing some POC testing. Here's the pertinent info on how the proxy config looks: <ProxyConfig allowedReferers="*"
mustMatch="true">
<serverUrls>
<serverUrl url="https://mygisserver/arcgis/rest/services"
matchAll="true"
username="user"
password="password"/>
</serverUrls> Here's how the quick test js looks: var flTest = new FeatureLayer("https://mygisserver/arcgis/rest/services/base_services/test/MapServer/0", {
id: "points",
mode: FeatureLayer.MODE_ONDEMAND
});
var simpleJson = {
"type": "simple",
"label": "",
"description": "",
"symbol": {
"color": [0, 0, 255, 191],
"size": 6,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [0, 0, 128, 255],
"width": 0,
"type": "esriSLS",
"style": "esriSLSSolid"
}
}
}
var rend = new SimpleRenderer(simpleJson);
flTest.setRenderer(rend);
map.addLayer(flTest); I have confirmed SSL is set-up correctly on the dev server where the mapping app is hosted, as well as on the GIS server. The map service is an xy feature event from an MS SQL Server db slice, if that matters at all. Thanks!
... View more
01-11-2016
10:21 AM
|
0
|
10
|
8481
|
|
POST
|
Ok, I figured out why it was working in Chrome - I had authenticated manually in REST, which was stuck in cache, I suppose. When I use a cold session, it exhibits the same behavior... I think I'll open another thread just for this issue.
... View more
01-11-2016
10:02 AM
|
0
|
0
|
775
|
|
POST
|
So, I pushed it to the dev server, which has a valid ssl for the host app. There should be a complete end-to-end ssl implementation, yet I'm still getting the authentication pop-up (which I don't want). I'm still unable to authenticate through the mapping app, but I can, using the same username/pw, authenticate directly in REST. I'm getting a console error now: Proxy is being used for an unsupported service: https://mygisserver/arcgis/tokens/ I'm using the proxy from the Esri github - Esri/resource-proxy · GitHub I looked over tokens, proxy, secure services and the vanishing help, but didn't find an applicable resolution... Any ideas? UPDATE: I tried this in Chrome, and it works on the DEV server, but not in IE11
... View more
01-11-2016
09:53 AM
|
0
|
1
|
775
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|