<?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 Identity Manager- logout in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123685#M2937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with Flex Mobile and have secure layers within an application.&amp;nbsp; I am using the Identity Manager and I have it working for logging in and using the layers.&amp;nbsp; I have multiple maps in my application and I want the Identity Manager to release or log out of the user when the view that contains the map and secure layers is closed.&amp;nbsp; It seems that the Identity Manager is not tied to the the individual map and the token persists after closing the map.&amp;nbsp; When the map is opened back up, the Identity Manager instance is still using the credentials and remains logged in.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to release the credentials when closing a view in Flex Mobile?&amp;nbsp; All of my attempts such as IdentityManager.instance.enabled = false; seems to do nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if multiple layers within a map are secure, when a user clicks cancel on the sign in window, they are forced to hit cancel the number of times corresponding to the number of secure layers.&amp;nbsp; Is there a way to restrict this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 13:18:23 GMT</pubDate>
    <dc:creator>MikeDahm</dc:creator>
    <dc:date>2013-06-28T13:18:23Z</dc:date>
    <item>
      <title>Identity Manager- logout</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123685#M2937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with Flex Mobile and have secure layers within an application.&amp;nbsp; I am using the Identity Manager and I have it working for logging in and using the layers.&amp;nbsp; I have multiple maps in my application and I want the Identity Manager to release or log out of the user when the view that contains the map and secure layers is closed.&amp;nbsp; It seems that the Identity Manager is not tied to the the individual map and the token persists after closing the map.&amp;nbsp; When the map is opened back up, the Identity Manager instance is still using the credentials and remains logged in.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to release the credentials when closing a view in Flex Mobile?&amp;nbsp; All of my attempts such as IdentityManager.instance.enabled = false; seems to do nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if multiple layers within a map are secure, when a user clicks cancel on the sign in window, they are forced to hit cancel the number of times corresponding to the number of secure layers.&amp;nbsp; Is there a way to restrict this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 13:18:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123685#M2937</guid>
      <dc:creator>MikeDahm</dc:creator>
      <dc:date>2013-06-28T13:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Manager- logout</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123686#M2938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to release the credentials when closing a view in Flex Mobile?&amp;nbsp; All of my attempts such as IdentityManager.instance.enabled = false; seems to do nothing.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can call destroy() on the Credential. See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/supportClasses/Credential.html#destroy()" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/supportClasses/Credential.html#destroy()&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, if multiple layers within a map are secure, when a user clicks cancel on the sign in window, they are forced to hit cancel the number of times corresponding to the number of secure layers.&amp;nbsp; Is there a way to restrict this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could create a custom version of the SignInWindow that saved the URL of the service that the user cancels to a shared application model. Then add a listener for the "showSignInWindow" event and in the handler, check if the URL of the service was canceled before, and if it was, call event.preventDefault() and setCredentialForCurrentSignIn(null).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html#signInWindowClass" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html#signInWindowClass&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html#event:showSignInWindow" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html#event:showSignInWindow&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html#setCredentialForCurrentSignIn()" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html#setCredentialForCurrentSignIn()&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 21:12:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123686#M2938</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2013-06-28T21:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Manager- logout</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123687#M2939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do you call the destroy() method to a credential?&amp;nbsp; From the view I am only working with the IdentityManager.instance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 15:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123687#M2939</guid>
      <dc:creator>MikeDahm</dc:creator>
      <dc:date>2013-07-23T15:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Manager- logout</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123688#M2940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running into an error that I cannot figure out using the identitymanager.&amp;nbsp; I am getting an error of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
 at flash.display::DisplayObjectContainer/getChildIndex()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running this on a mobile project in the simulator.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I remove the security settings /users and roles from my server manager, the data shows up fine without being asked for a login.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however after I set the users and roles and add the permissions this error appears.&amp;nbsp; I was also getting this same error using the sample code provided by esri.&amp;nbsp; However in that case, I would get it to fires once (asking for credentials and then showing me the secure data) , and each subsequent case after I close the initial simulator, the error would appear over and over again.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you be willing to share your code on how you got the identitymanager to work properly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123688#M2940</guid>
      <dc:creator>ClintonCooper1</dc:creator>
      <dc:date>2021-12-11T07:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Manager- logout</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123689#M2941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;found answer to my question @ &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/89589-Secure-editing-in-a-mobile-flex-project"&gt;http://forums.arcgis.com/threads/89589-Secure-editing-in-a-mobile-flex-project&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clinton&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 15:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123689#M2941</guid>
      <dc:creator>ClintonCooper1</dc:creator>
      <dc:date>2013-08-20T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Manager- logout</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123690#M2942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Whenever I use the "setCredentialForCurrentSignIn(null)" on the IdentityManager instance it gives an error 1009 cannot access a property or method of a null object reference.&amp;nbsp; How do I call the credential to destroy it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 17:59:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identity-manager-logout/m-p/123690#M2942</guid>
      <dc:creator>MikeDahm</dc:creator>
      <dc:date>2013-08-27T17:59:48Z</dc:date>
    </item>
  </channel>
</rss>

