Select to view content in your preferred language

Multiple Users with the same Login credentials

500
0
10-26-2021 10:17 AM
YashvitNaik
Occasional Contributor

Hi,

I'm using ArcGIS Javascript API 4.15, facing an issue while generating a token for the ArcGIS online MapService.

When multiple users (for example around 10 users) try to load the map with the same UserName/Password, the login popup appears for some users.

the code is :

serverInfo= {
"hasServer": true,
"server": <serverUrl>,
"tokenServiceUrl": <tokenServiceUrl>
}
parameters= {
f: "json",
"username": <userName>,
"password": <pwd>
}
var def = this.esri.identityManager.generateToken(serverInfo, parameters);
def.then((tokenInfo) => {
                   this.esri.identityManager.registerToken({
                                           "server": <serviceUrl>,
                                           "token": <token>
                                           "userId": <username>,
                                           "expires": <expires>,
                                           "ssl": <ssl>
                                   })
})

 

YashvitNaik_0-1635268533190.png

 

 

0 Kudos
0 Replies