Skip to content

Commit

Permalink
added catch handler for authority
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitnarula7176 committed May 22, 2018
1 parent d835103 commit e1fdf33
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 55 deletions.
12 changes: 12 additions & 0 deletions dist/msal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/msal.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/msal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/msal.min.js.map

Large diffs are not rendered by default.

94 changes: 47 additions & 47 deletions docs/classes/_useragentapplication_.useragentapplication.html

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions lib-commonjs/UserAgentApplication.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib-commonjs/UserAgentApplication.js.map

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions lib-es6/UserAgentApplication.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib-es6/UserAgentApplication.js.map

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions src/UserAgentApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,10 @@ export class UserAgentApplication {
if (popUpWindow) {
popUpWindow.close();
}
});
}).catch((err) => {
this._logger.warning("could not resolve endpoints");
reject(err);
});
});
}

Expand Down Expand Up @@ -1086,7 +1089,10 @@ protected getCachedTokenInternal(scopes : Array<string> , user: User): CacheResu
if (popUpWindow) {
popUpWindow.close();
}
});
}).catch((err) => {
this._logger.warning("could not resolve endpoints");
reject(err);
});
});
}

Expand Down Expand Up @@ -1147,7 +1153,9 @@ protected getCachedTokenInternal(scopes : Array<string> , user: User): CacheResu
return;
}
}

else {
this._logger.verbose("Token is not in cache for scope:" + scope);
}
// cache miss
return this.authorityInstance.ResolveEndpointsAsync()
.then(() => {
Expand Down

0 comments on commit e1fdf33

Please sign in to comment.