Identity Manager Sign in Dialog w Template Example

3150
5
01-03-2013 02:14 PM
by Anonymous User
Not applicable
Original User: christinezeller

I took the example code - http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#SignInDialogWithTemplate
and got it running on my server. 

I then flipped the esri secured service in the example to my secured service.  My service is also secured with ArcGIS Security (User / Role).

I can hit my secure rest endpoint directly add my user name and pass and see my services but when I'm prompted the application I try to use the exact same user name and password (which works at the end point) and receive the following message (see attachment).


Now if I use my secure address https:// (my server / web portal and services are all using SSL certificate on the server) the dialog box doesn't read my services and server but it does when I use my internal address http://
Also when I use the https:// site address the OK and Cancel buttons are not available, they are there but I can't click them

See 2nd screen shot

I can hit my internal address and external address endpoints directly and my password and username work .


Any ideas?






Any suggestions?

Thanks
Christine
0 Kudos
5 Replies
DominiqueBroux
Esri Frequent Contributor
In your second screenshot it seems the SignInDialog is called with an empty or null Url. Did your set the Url property correctly by code?

For the 'Security Error', I have no clue, perhaps using fiddler to look at requests sent to the server might help.
0 Kudos
by Anonymous User
Not applicable
Original User: christinezeller

Dominique,

Thanks for the response.

The first one with the Security error is where I'm trying to hit the address which is not HTTPS.  It first send trys to tunnel to my server

[HTML]Encrypted HTTPS traffic flows through this CONNECT tunnel. HTTPS Decryption is enabled in Fiddler, so decrypted sessions running in this tunnel will be shown in the Web Sessions list.

Secure Protocol: Tls
Cipher: Aes128 128bits
Hash Algorithm: Sha1 160bits
Key Exchange: RsaKeyX 2048bits

== Server Certificate ==========
[Subject]
  CN=*.escondido.org, OU=Domain Control Validated - RapidSSL(R), OU=See www.rapidssl.com/resources/cps (c)10, OU=GT46257872, O=*.escondido.org, C=US, SERIALNUMBER=teABCgkHQ5zOmrG56POEQCpywpVtThaK

[Issuer]
  CN=RapidSSL CA, O="GeoTrust, Inc.", C=US

[Serial Number]
  09C335

[Not Before]
  12/19/2012 4:02:06 AM

[Not After]
  8/28/2015 7:58:17 PM

[Thumbprint]

  CFF2E0C64D7D04C925D986496DF09149F71AD04F[/HTML]



And then trys to hit my Clientaccesspolicy.xml file which is the same as always.


<?xml version="1.0" encoding="utf-8" ?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from http-request-headers="*">
        <domain uri="*"/>
      </allow-from>
      <grant-to>
        <resource path="/" include-subpaths="true"/>
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>




In your second screenshot it seems the SignInDialog is called with an empty or null Url. Did your set the Url property correctly by code?


It is the right URL just using HTTPS which is what I want.  I can copy the address and hit the end point log-in screen directly and get in.  Fiddle does throw this error and it happens on startup before I try to login

{"error":{"code":499,"message":"Token Required","details":[]}}



At this point I've used all 3 SDK examples with the original code (they work) and then just swapped out my URLs and they don't work and I'm out of options.  THink I might need to contact support...unless if you want to see my url and login I can send them your way.

Thanks
0 Kudos
DominiqueBroux
Esri Frequent Contributor
unless if you want to see my url and login I can send them your way.


You may send me login info for testing at dbroux@esri.com

Thanks.
0 Kudos
by Anonymous User
Not applicable
Original User: deminhu

Hi, Christine

I don't know how your server is configured, but I have a ArcGIS server configure with proxy server, https, the  map services are securtied. I don't have any problem with signin dialog with SL API.

What I did,   I used all services as https,  like the following:

<esri:Map x:Name="TestMap" WrapAround="True">
            <esri:ArcGISTiledMapServiceLayer
              Url="https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer" />

                    <esri:ArcGISTiledMapServiceLayer ID="XXXLayer"
                Url="https://xxxxx/arcgis/rest/services/TEST/XXX/MapServer"
                InitializationFailed="Layer_InitializationFailed"
                Initialized="Layer_Initialized" />
           
            <esri:ArcGISTiledMapServiceLayer ID="xxxxLayer"
                Url="https://xxxx/arcgis/rest/services/TEST/xxxxx/MapServer"
                InitializationFailed="Layer_InitializationFailed"
                Initialized="Layer_Initialized" />
</esri:Map>

If you mix https and http in one page, probably you have set the browser security setting  to allow or not.

But I didn't figure out how to call    add Bing layers in the map control with HTTPS yet, if somebody knows, please let me know.
0 Kudos
DeminHu
New Contributor
Figured out how to use Bing layers in HTTPS.

what I did :

Don't add bing layers from .xaml, add from code (
http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#BingImagery ), but in uri, using https instead of http.
0 Kudos