<?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 Re: Log out of Custom Experience Builder Application in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/1001619#M1233</link>
    <description>&lt;P&gt;Thanks for the update, I ended up using the esriId.destroyCredentials(). Out of interest though, if we wanted to create a custom login screen how would we go about doing that? Should we be using the session manager? I've just noticed that if I use esriId, then it will login and I can then change the page, but then when it tries to load a webmap it prompts for login again, so I'm thinking that the token I have created with esirId is outside the Experience Builder system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm thinking that session manager is the way to go? Would that be correct?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 00:52:34 GMT</pubDate>
    <dc:creator>Grant-S-Carroll</dc:creator>
    <dc:date>2020-11-16T00:52:34Z</dc:date>
    <item>
      <title>Log out of Custom Experience Builder Application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/91458#M142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I'm building a custom app using experience builder one of the requirements is that a user should be able to log out of the application. I'm struggling however to work out how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see there is a session manger, and I have tried calling signOut on that, but if I refresh my page again I am still logged in, I have also tried destroying the exb_auth cookie manually and trying to invalidate the token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance on this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Nov 2020 21:30:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/91458#M142</guid>
      <dc:creator>Grant-S-Carroll</dc:creator>
      <dc:date>2020-11-01T21:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Log out of Custom Experience Builder Application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/91459#M143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think call `SessionManager.getInstance().singOut()` should work, can you try the latest version (1.2)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 00:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/91459#M143</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2020-11-06T00:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Log out of Custom Experience Builder Application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/1001619#M1233</link>
      <description>&lt;P&gt;Thanks for the update, I ended up using the esriId.destroyCredentials(). Out of interest though, if we wanted to create a custom login screen how would we go about doing that? Should we be using the session manager? I've just noticed that if I use esriId, then it will login and I can then change the page, but then when it tries to load a webmap it prompts for login again, so I'm thinking that the token I have created with esirId is outside the Experience Builder system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm thinking that session manager is the way to go? Would that be correct?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 00:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/1001619#M1233</guid>
      <dc:creator>Grant-S-Carroll</dc:creator>
      <dc:date>2020-11-16T00:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Log out of Custom Experience Builder Application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/1005354#M1299</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I do not find any developer samples for SessionManager. Would like to implement silent Sign-in (user shouldn't get sign-in popup) for Webmap with the secured layers, any advise on how this can be implemented using SessionManager or any other possible way please.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 08:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/1005354#M1299</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2020-11-29T08:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Log out of Custom Experience Builder Application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/1389346#M11203</link>
      <description>&lt;P&gt;Found this problem as well, my main issue was that my client wanted to force the client to log back in without throwing them back to the AGOL/Portal sign in page.&lt;BR /&gt;What I found to work, instead of using just:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SessionManager.getInstance().signOut()&lt;/LI-CODE&gt;&lt;P&gt;Which throws you out completely, you can clear the sessions, localStorage and sessionStorage.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SessionManager.getInstance().clearSessions()
localStorage.clear()
// or if you use localStorage and want to just replace the EB Auth info
localStorage.setItem('exb_auth','')
sessionStorage.clear()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that you can refresh the page and the user will be forced to sign back in,&lt;BR /&gt;I also tried but unfortunately failed to simply de-authorize the current userSession or to force it to refresh with a new token that will expire when you want it to.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 09:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/log-out-of-custom-experience-builder-application/m-p/1389346#M11203</guid>
      <dc:creator>bogind</dc:creator>
      <dc:date>2024-03-01T09:09:12Z</dc:date>
    </item>
  </channel>
</rss>

