<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Customise Identity Manager in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138507#M12923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just having a look at the identity manger for securing services - &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/identitymanager.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/identitymanager.html&lt;BR /&gt;&lt;BR /&gt;A&lt;/A&gt;&lt;SPAN&gt;nd wondered if anyone has done much customisation around this and how to do it e.g. Change to jQuery popup, changing text that appears in login popup, don't show again checkbox?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2013 08:02:06 GMT</pubDate>
    <dc:creator>ShaunWeston</dc:creator>
    <dc:date>2013-05-06T08:02:06Z</dc:date>
    <item>
      <title>Customise Identity Manager</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138507#M12923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just having a look at the identity manger for securing services - &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/identitymanager.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/identitymanager.html&lt;BR /&gt;&lt;BR /&gt;A&lt;/A&gt;&lt;SPAN&gt;nd wondered if anyone has done much customisation around this and how to do it e.g. Change to jQuery popup, changing text that appears in login popup, don't show again checkbox?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 08:02:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138507#M12923</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2013-05-06T08:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Customise Identity Manager</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138508#M12924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And if it's OK I'll jump on this bandwagon -- anyone using server-side authentication with ESRI secured REST services, via ASP.NET, and have it up as a site we could check out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, instead of a second popup for credentials it just uses the ones you already provide if you log in to the standard Windows Forms ASP.NET site (with the Log In on Site.Master and SQL Server database backend functionality). We have API 3.4 with Arc 10.0 Sp5 secured REST service now. We are testing with Identity Manager but it'd be nice to piggyback on the built-in ASP.NET authentication mechanism. I guess in referring to this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_secureservices.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_secureservices.html&lt;/A&gt;&lt;SPAN&gt; it may (does?) involve a proxy page? Haven't played with those, we've attempted to stay away from it until we really need it. If we figure this out we'll post back here, too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 13:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138508#M12924</guid>
      <dc:creator>KevinMacLeod1</dc:creator>
      <dc:date>2013-05-06T13:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Customise Identity Manager</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138509#M12925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just having a look at the identity manger for securing services - &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/identitymanager.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/identitymanager.html&lt;BR /&gt;&lt;BR /&gt;A&lt;/A&gt;nd wondered if anyone has done much customisation around this and how to do it e.g. Change to jQuery popup, changing text that appears in login popup, don't show again checkbox?&lt;BR /&gt;&lt;BR /&gt;Cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;haven't swapped out the dialog, but I did change the text by adding this to init function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do customize text, make sure and maintain the ${server} and ${resource} params, otherwise the dialog doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;esri.bundle.identity.info = "If you have not received a login, please contact this person. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;addy@email.com ${server} ${resource}";&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 14:28:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138509#M12925</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2013-05-06T14:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Customise Identity Manager</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138510#M12926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;And if it's OK I'll jump on this bandwagon -- anyone using server-side authentication with ESRI secured REST services, via ASP.NET, and have it up as a site we could check out?&lt;BR /&gt;&lt;BR /&gt;So, instead of a second popup for credentials it just uses the ones you already provide if you log in to the standard Windows Forms ASP.NET site (with the Log In on Site.Master and SQL Server database backend functionality). We have API 3.4 with Arc 10.0 Sp5 secured REST service now. We are testing with Identity Manager but it'd be nice to piggyback on the built-in ASP.NET authentication mechanism. I guess in referring to this &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_secureservices.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_secureservices.html&lt;/A&gt; it may (does?) involve a proxy page? Haven't played with those, we've attempted to stay away from it until we really need it. If we figure this out we'll post back here, too.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a round-about way we're in the process of doing something similar. Rather then a 100% custom solution, we are still using the built-in esri Token security mechanism. This is all for a one-time login. If the user originates from an "already secured site" they have permission to view the js app. But, we dont' have access to the "already secured site's" auth. mechanism. So, here's how we handle it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
external site--&amp;gt; server out of our control
&amp;nbsp;&amp;nbsp;&amp;nbsp; user clicks link to js app--&amp;gt; server out of our control
&amp;nbsp;&amp;nbsp;&amp;nbsp; jquery ajax fires call to .ashx handler--&amp;gt; server out of our control
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server side .ashx handler grabs client IP--&amp;gt; server out of our control
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ashx handler sends client IP to ourServer.php script via url post--&amp;gt; our server
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -ourServer.php checks ip of incoming call,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -if from accepted IP, requests a token from the GIS Server using hard-coded creds.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -stores token, client IP and random gen. key in sql db
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - returns random key to .ashx handler
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ashx handler returns key to ajax success handler--&amp;gt;server out of our control
&amp;nbsp;&amp;nbsp;&amp;nbsp; jquery appends key to js app link href attribute--&amp;gt;server out of our control

js app checks for key when the user arrives at site--&amp;gt; our server
&amp;nbsp;&amp;nbsp;&amp;nbsp; -if a key is found, the proxy.php page query's sql db, and retrieves the previously stored token using the key and client IP
&amp;nbsp;&amp;nbsp;&amp;nbsp; -if key and client IP match, return token to js app
js app loads token using the same method here: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/widget_identitymanager_client_side.html
&amp;nbsp;&amp;nbsp;&amp;nbsp; -if the token is valid and not expired, the identityManager will handle the credential and not prompt for login
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if for some reason the &lt;/SPAN&gt;&lt;A href="https://oursite/jsLInk?key=aRandomstring" rel="nofollow noopener noreferrer" target="_blank"&gt;https://oursite/jsLInk?key=aRandomstring&lt;/A&gt;&lt;SPAN&gt; is emailed to a dif. user, and they try the link within 60mins (token expiration) of when the orig. user clicked on js app link, it won't work because the proxy.php script on our server wont' retrieve the token from sql db because client2 has a dif. IP as what's associated with the key that client2 is passing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customise-identity-manager/m-p/138510#M12926</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2021-12-11T07:40:18Z</dc:date>
    </item>
  </channel>
</rss>

