Select to view content in your preferred language

Prevent Authentication type dialog in a OAUTH2 context to popup

50
0
yesterday
ChristopheS
New Contributor II

Hi all,

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  (which should allow all identity  Apps defined in ID manager), our Arcgis JavaScript  (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".

(Keycloak is the AppID in Arcgis Portal that is protected with OAUTH2).

This dialog pops up ones the first time we open the App, but it should never popup because we are already authenticated.

dialog-oidc.jpg

Note that this dialog does not seem to be the one that reacts on event IdentityManager.on('dialog-create', () => {IdentityManager.dialog.open = false; .....}.

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.

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 ?

Regards

Chris

 

0 Kudos
0 Replies