Good Day
I'm trying to verify my application settings without having to direct through the login system.
I have a page with the following formation on it (this is an Angular Application):
Server URL
App ID
App Secret
Server Type: Online vs Enterprise
Token URL
What I want, is to pass the data into the Identity Manager and have it give me back a successful response, to verify the data is correct. Every time I call the Identity Manager, with this flow:
const info = new OAuthInfo({
appId: portalConfig.appId,
flowType: 'auto',
popup: popup
});
IdentityManager.registerOAuthInfos([info]);
IdentityManager.getCredential(portalConfig.serverURL + '/sharing').then(() => {
IdentityManager.checkSignInStatus(portalConfig.serverURL + "/sharing").then(() => {
r(portalConfig.serverURL);
}).catch((error) => {
console.log('Error - Identity Manager - Check Sign In Status');
console.log(error);
j(error);
})
}).catch((error) => {
console.log('Error - Identity Manager - Get Credential');
console.log(error);
j(error);
})
I get redirected to a window that asks if I want to allow that connection
How can I bypass this Windows? I'm using ArcGIS Code 4.29.7.
Thanks