Select to view content in your preferred language

Possible to hard code credentials?

6204
11
12-11-2012 11:58 AM
JeffPace
MVP Alum
I am trying to eliminate duplicate services.  Right now we have two server, with identical services.  One with security enabled, one without.

The secure server has ssl enabled and has endpoints through a Web App Firewall (proxy)
The insecure server is internal only.

The point of the insecure server is so that employees, on the internal network, do not have to login.

I already sniff the host during access to load a config file.  I was hoping that i could hard code credentials (or at least perform the login behind the scenes) so that i can access the secure server without a prompt for a login If i detect the user is on the internal network.  Is that possible?

thanks.
0 Kudos
11 Replies
RahulMetangale1
Frequent Contributor
@Bill: Correct we are also generating the token from Java business app containing our javascript application. The example I provided is just proof of concept.
@jeff: you can create the token from server side. Bill has already provided the example.
0 Kudos
RahulMetangale1
Frequent Contributor
@Danik: The sample can work with any secured service hosted over ArcGIS Server. So it would also work for ArcGIS Online service but you should have the credentials to access the same.
0 Kudos