Store login credentials

2319
2
Jump to solution
02-13-2014 09:24 AM
EvanThoms
Occasional Contributor II
I am working with a map template I downloaded and am accessing AGOL services that are not yet public, so I have to log in everytime I refresh the web map. Is there a place I can store my AGOL credentials to avoid this?
0 Kudos
1 Solution

Accepted Solutions
GregoryL_Azou
Occasional Contributor III
No we don't provide that kind of configuration as it's not safe to have the password not encrypted in the application.
The proper way to do it is to use a proxy that will know the credentials and log-in the user on the server. This require you to have a IIS/PHP/JEE server and may slow down a bit your application as all traffic will use the proxy.

Here is some thread from the JS API forum that you may find useful Login to ArcGIS Server Secured Services, Programmatically Log In to ArcGIS Online via Javascript Application, Possible to hard code credentials?.

View solution in original post

0 Kudos
2 Replies
GregoryL_Azou
Occasional Contributor III
No we don't provide that kind of configuration as it's not safe to have the password not encrypted in the application.
The proper way to do it is to use a proxy that will know the credentials and log-in the user on the server. This require you to have a IIS/PHP/JEE server and may slow down a bit your application as all traffic will use the proxy.

Here is some thread from the JS API forum that you may find useful Login to ArcGIS Server Secured Services, Programmatically Log In to ArcGIS Online via Javascript Application, Possible to hard code credentials?.
0 Kudos
EvanThoms
Occasional Contributor II
Ok, thank you!
0 Kudos