identity manager

1308
9
Jump to solution
12-26-2012 02:11 PM
JMcNeil
Occasional Contributor III
Attached is my layout.js.

I've added the identity manager and secured my feature service and I'm not getting prompted for creditials.  The feature services doesn't show or draw.  I'm at version 2.8.  If I flip over to 3.2 none of my layers draw in I.E version 9.0.8112 but they do in Mozilla.  Either way I don't see the login dialog for the sercured service.

Am I missing something?  Do I need to be at 3.2?  Does I.E. 9.0.8112 support 3.2?


If I download the sample index.html file and load it on my machine.  It works in firefox.  I'm propmt for creditals but in I.E. I'm never prompt and don't see the feature layer. 

THanks
J
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor
Jay,

I think the easiest way to troubleshoot this issue is to use the Identity Manager sample.

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_identitymanager.html


Reading through this thread it looks like you've already done this and you noted the following problem. In the copy you setup locally did you update the proxy url to point to your proxy? If not then this isn't going to work in IE. Try updating the proxy and see if that works.  You also mentioned that you are using 2.8. Is there a reason you haven't upgraded? We've made some updates to the Identity Manager so I recommend using the latest release (3.2).

"If I download the sample index.html file and load it on my machine. It works in firefox. I'm propmt for creditals but in I.E. I'm never prompt and don't see the feature layer. "

View solution in original post

0 Kudos
9 Replies
RahulMetangale1
Occasional Contributor II
Ensure that following conditions are met:
1. ArcGIS Server resources secured using token-based authentication.
2. ArcGIS Server versions 10 SP 1 and greater are supported.

Also try following from web browser
https://<your_ArcGIS_Server>/ArcGIS/rest/info
Output should be similar to
Server Information

Current Version: 10.02

SOAP URL: http://WEBAPI20BETA/arcgis/services

Secure SOAP URL: https://WEBAPI20BETA:443/arcgis/services

Authentication Information: 
Is Token Based Security : True
Token Service Url : https://servicesbeta.esri.com/ArcGIS/tokens
Supported Interfaces:   REST 
0 Kudos
JMcNeil
Occasional Contributor III
Rahul_M,


The conditions are met:
1. ArcGIS Server resources secured is using token-based authentication.
2. ArcGIS Server versions is 10.1.1.

Current Version: 10.11

Full Version: 10.1.1

SOAP URL: http://myserver/arcgis/services

Secure SOAP URL: https://myserver/arcgis/services

Authentication Information:

Is Token Based Security: true
Token Service URL: https://myserver/arcgis/tokens/
ShortLived Token Validity: 60 minutes



Thanks for the reply.  I hoping someone can look at my code and maybe shed some light there.  Also I'm wondering about I.E. 9 problems because I can't get the ESRI example to work with I.E. 9 but it does work with FireFox...all noted in original post.

J
0 Kudos
JMcNeil
Occasional Contributor III
Still looking for help.  I really need to lcok down this services that is exposed.  Can someone help?
0 Kudos
KellyHutchins
Esri Frequent Contributor
See the following thread for info on why this works in Firefox/Chrome and not IE

http://forums.arcgis.com/threads/72265-IdentityManager-quot-Aborted-Sign-In-process...-quot-with-cre...
0 Kudos
JMcNeil
Occasional Contributor III
Kelly,

Thanks for the response!  That helped with my questions about the ESRI Sample but still doesn't explain why I don't see a log-in dialog box for my application.  I posted my code in a zip.  It is a simple app with two feature layers and when I use Mozilla I don't see the log-in credential splash dialog; it just goes into my app and doesn't show my locked feature services.  Any suggestions?

THanks Jay
0 Kudos
KellyHutchins
Esri Frequent Contributor
Jay,

I think the easiest way to troubleshoot this issue is to use the Identity Manager sample.

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_identitymanager.html


Reading through this thread it looks like you've already done this and you noted the following problem. In the copy you setup locally did you update the proxy url to point to your proxy? If not then this isn't going to work in IE. Try updating the proxy and see if that works.  You also mentioned that you are using 2.8. Is there a reason you haven't upgraded? We've made some updates to the Identity Manager so I recommend using the latest release (3.2).

"If I download the sample index.html file and load it on my machine. It works in firefox. I'm propmt for creditals but in I.E. I'm never prompt and don't see the feature layer. "
0 Kudos
JMcNeil
Occasional Contributor III
Kelly,

Thanks for all the replies.  It was my proxy file.  After I did the change in my proxy I got the ESRI site working and My site working.

I do have a different issue/question.  My site runs fine in I.E. with version 3.1.  But with version 3.2 it does not display any services or map layers (secured or unsecured).  It does work in Firefox with version 3.2.  Do you know what could be causing this.  I' have a sea proxy and an SSL certificate on the server that hosts the app and proxy.

Thanks
J

p.s. can't wait to see what you guys roll out at the Dev Summit!
0 Kudos
KellyHutchins
Esri Frequent Contributor
Not sure what is causing the issue in IE - it can be picker than other browsers about things like trailing commas. Are there any errors displayed? Might be worth running your code through a checker like JSLint or JSHint to see if any issues are found.

If you can provide your updated code for testing that would help too.
0 Kudos
JMcNeil
Occasional Contributor III
Kelly,

Now at version 3.2 in I.E. when I launch the app I get a little dialog/message stating "Only secured content is displayed" and there is a button to display all content.  I hit that but no map layers and really that doesn't make sense because everything is secure...OH except the ESRI and Bing Base Layers??? Umm??? 

Well I ran the code through JSLint and it looks bad...lots of messy white space and using dojo, esri, and dijit before defined " 'dojo' was used before it was defined."  Not really sure about that started with a web template and that is how you guys did it. 

Attached is my layout.js that I attached to the first message hasn't changed except version 2.8 is now 3.2 and my web server address and proxy address.  If you really want to see it all I could send you my code?  I could also give you my app address but all my services aren't secured..still working securing them one by one and one site at a time. 

Hum, what about just moving back to 3.1 where there were no issue.  You mentioned before a lot of new changes to identity manger at 3.2? 

J
0 Kudos