Skip to content

Commit

Permalink
Merge branch 'fix-multiple-resource-bug-2.0' of https://github.com/Az…
Browse files Browse the repository at this point in the history
…ureAD/microsoft-authentication-library-for-js into fix-multiple-resource-bug-2.0
  • Loading branch information
tnorling committed May 5, 2020
2 parents f471935 + 15f7553 commit 3a9ee9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/msal-common/src/request/ScopeSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export class ScopeSet {

const unionScopes = this.unionScopeSets(otherScopes);

// Do not allow offline_access to be the only intersecting scope
const sizeOtherScopes = otherScopes.containsScope(Constants.OFFLINE_ACCESS_SCOPE)? otherScopes.getScopeCount() - 1 : otherScopes.getScopeCount();
const sizeThisScopes = this.containsScope(Constants.OFFLINE_ACCESS_SCOPE)? this.getScopeCount() - 1: this.getScopeCount();
const sizeUnionScopes = unionScopes.has(Constants.OFFLINE_ACCESS_SCOPE)? unionScopes.size - 1: unionScopes.size;
Expand Down

0 comments on commit 3a9ee9a

Please sign in to comment.