AnsweredAssumed Answered

Arcgis-js-api Identity Manager with Angular missing uri

Question asked by PGiard@chacompanies.com on Jul 9, 2018
Latest reply on Jul 9, 2018 by PGiard@chacompanies.com

 

I am following the repo here https://github.com/andygup/angular-cli-esri-map and trying to use the Identity Manager from ArcGIS-js-api.  Am I missing something?  From the samples this should work.
I receive a not found error with that url, but the server responds when I make a request via Postman
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). GET - https://js.arcgis.com/4.7/esri/IdentityManager.js
ngOnInit() {
loadModules([
'esri/arcgis/OAuthInfo',
'esri/IdentityManager'
])
.then(([OAuthInfo, IdentityManager]) => {


const identityManager = new IdentityManager();

const oAuthInfo = identityManager.findOAuthInfo(portalUrl);

console.log('This is the Oauth Info: ' + oAuthInfo.toJson);

Outcomes