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 dialog-oidc.jpg](https://community.esri.com/t5/image/serverpage/image-id/113253iBB1290801433A98F/image-size/large?v=v2&px=999)
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
ps. In JavaScript we use this kind of authentication sequence:
//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");