Unfortunately I do not have VS, I'm not likely to get a copy and I've never used it.Maybe I don't need your modified ashx code. In the file I see these lines:public string GetToken(string uri)
{
foreach (ServerUrl su in serverUrls)
{
if (su.MatchAll && uri.StartsWith(su.Url, StringComparison.InvariantCultureIgnoreCase) && su.DynamicToken)
{
// Code to dynamically get the token
string tokenService = string.Format("https://{0}/ArcGIS/tokens?request=getToken&username={1}&password={2}&expiration=30", su.Host, su.UserName, su.Password);
string token;
I interpret this to mean that 0, 1, 2 are parameters that are read from the proxy.config file. I want to be able to let the user enter their user name and password in a form, defining the variables dynamically, in this example usr and pwd.esri.request({
url: "https://myserver.mo.gov/ArcGIS/tokens",
content: {
request: "getToken",
username: usr,
password: pwd
},
handleAs: "text",
load: tokenObtained,
error: tokenRequestFailed
});
Do I not really need your modified proxy.ashx since that seems to be looking to proxy.config for these same parameters? I didn't feel like the original proxy.ashx from the Resource Center was quite what I needed either.