<?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: Prevent Authentication type dialog in a OAUTH2 context to popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543434#M85779</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/432034"&gt;@ChristopheS&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you try to add "esriConfig" module in the application as follows:&lt;/P&gt;
&lt;P&gt;require([&lt;BR /&gt;"esri/config"&lt;BR /&gt;], function(esriConfig) {&lt;/P&gt;
&lt;P&gt;// Set the hostname to the on-premises portal&lt;BR /&gt;esriConfig.portalUrl = ""; //enter the portalURL&lt;BR /&gt;&lt;BR /&gt;I believe this should give the "Allow" prompt instead of credentials prompt.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2024 15:10:56 GMT</pubDate>
    <dc:creator>AshishBoban1</dc:creator>
    <dc:date>2024-09-27T15:10:56Z</dc:date>
    <item>
      <title>Prevent Authentication type dialog in a OAUTH2 context to popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1525894#M85463</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We have configured an OpenId Connect (OIDC) with our ADFS, on our 11.2 Arcgis Portal. Authentication works but, even though we have already logged in on our OIDC&amp;nbsp; (which should allow all identity&amp;nbsp; Apps defined in ID manager), our Arcgis JavaScript&amp;nbsp; (jsAPI 4.26) application is still prompting user with a dialog that says "keycloak wants to access account information from Siveco Arcgis portal 11.2".&lt;/P&gt;&lt;P&gt;(Keycloak is the AppID in Arcgis Portal that is protected with OAUTH2).&lt;/P&gt;&lt;P&gt;This dialog pops up ones the first time we open the App, but it should never popup because we are already authenticated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dialog-oidc.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113253iBB1290801433A98F/image-size/large?v=v2&amp;amp;px=999" role="button" title="dialog-oidc.jpg" alt="dialog-oidc.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that this dialog does not seem to be the one that reacts on event IdentityManager.on('dialog-create', () =&amp;gt; {IdentityManager.dialog.open = false; .....}.&lt;/P&gt;&lt;P&gt;We also noticed that when we click on the button OIDC it displays straightaway the secured layers in the map and we noticed at this point that in web browser local storage, a token-cookie with the user we have connected with is created.&lt;/P&gt;&lt;P&gt;Is there a way to prevent this useless dialog ? This may be done in Arcgis Server Portal configuration, or in our Javascript App with Esri JsAPI ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;ps. In JavaScript we use this kind of authentication sequence:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//1-First step to create an OAuthInfo object and register it with the IdentityManager.
let info = new OAuthInfo(
{
	appId: gisServerOpenId.client_id,
	portalUrl: gisServerOpenId.serverUrl,
	popup: false
});
IdentityManager.registerOAuthInfos([info]);
//2-Next, check if the user is signed in.
await IdentityManager.checkSignInStatus(info.portalUrl + "/sharing").then(function (evt)
{
//
})
.catch(function (err) {
	console.log(err);
});
//3-Once signed in, retrieve the credentials.
IdentityManager.getCredential(info.portalUrl + "/sharing");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 14:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1525894#M85463</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2024-08-23T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Authentication type dialog in a OAUTH2 context to popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1534090#M85564</link>
      <description>&lt;P&gt;Any clues on that issue ?&lt;/P&gt;&lt;P&gt;It is quit strange that while OpenId has been introduced in 11.2 Arcgis Server, no one has been using it yet, moreover no ESRI developer is aware if this ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 08:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1534090#M85564</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2024-09-11T08:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Authentication type dialog in a OAUTH2 context to popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543434#M85779</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/432034"&gt;@ChristopheS&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you try to add "esriConfig" module in the application as follows:&lt;/P&gt;
&lt;P&gt;require([&lt;BR /&gt;"esri/config"&lt;BR /&gt;], function(esriConfig) {&lt;/P&gt;
&lt;P&gt;// Set the hostname to the on-premises portal&lt;BR /&gt;esriConfig.portalUrl = ""; //enter the portalURL&lt;BR /&gt;&lt;BR /&gt;I believe this should give the "Allow" prompt instead of credentials prompt.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 15:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543434#M85779</guid>
      <dc:creator>AshishBoban1</dc:creator>
      <dc:date>2024-09-27T15:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Authentication type dialog in a OAUTH2 context to popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543463#M85780</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/702397"&gt;@AshishBoban1&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Effectively, esriConfig.portalUrl&amp;nbsp; is equal to &lt;SPAN class=""&gt;"&lt;A title="https://www.arcgis.com" href="https://www.arcgis.com" target="_blank" rel="noopener noreferrer"&gt;https://www.arcgis.com&lt;/A&gt;" by default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;If I set it to our Arcgis portal which looks like "&lt;A title="https://geoloc.siveco.gr/portal" href="https://geoloc.siveco.gr/portal" target="_blank" rel="noopener noreferrer"&gt;https://geoloc.siveco.gr/portal&lt;/A&gt;" like this, we have:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;esriConfig.portalUrl = portalUrl;
identityManager.registerOAuthInfos([info]);
identityManager.getCredential(info.portalUrl + "/sharing");&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;.. we still have the dialog popup, unfortunately.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 15:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543463#M85780</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2024-09-27T15:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Authentication type dialog in a OAUTH2 context to popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543539#M85781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/432034"&gt;@ChristopheS&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Please check if esriConfig.portalUrl = "&lt;A href="https://geoloc.siveco.gr/portal" target="_blank" rel="noopener"&gt;https://geoloc.siveco.gr/portal"&lt;/A&gt;&amp;nbsp;is as same as&amp;nbsp;the value provided in the portalUrl parameter of OAuthInfo class (gisServerOpenId.serverUrl). The portalUrl should be same at both the locations.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 18:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543539#M85781</guid>
      <dc:creator>AshishBoban1</dc:creator>
      <dc:date>2024-09-27T18:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Authentication type dialog in a OAUTH2 context to popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543751#M85785</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/702397" target="_blank" rel="noopener"&gt;@AshishBoban1&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Yes it is, code looks like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;let portalUrl = gisServerOpenId.serverUrl;//"https://geoloc.siveco.gr/portal",
let info = new OAuthInfo(
{
	appId: gisServerOpenId.client_id,
	portalUrl: portalUrl,
	popup: false
});
EsriConfig.portalUrl = portalUrl;
IdentityManager.registerOAuthInfos([info]);
IdentityManager.getCredential(info.portalUrl + "/sharing");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Sep 2024 09:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-type-dialog-in-a-oauth2/m-p/1543751#M85785</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2024-09-30T09:52:16Z</dc:date>
    </item>
  </channel>
</rss>

