Skip to content

Commit

Permalink
Merge pull request #2201 from AzureAD/appmetadata-foci
Browse files Browse the repository at this point in the history
FOCI feature and AppMetadata support in cache
  • Loading branch information
sameerag committed Sep 23, 2020
2 parents dd24960 + 5937d5d commit cf31946
Show file tree
Hide file tree
Showing 23 changed files with 597 additions and 261 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "minor",
"comment": "FOCI - Family of Client IDs feature",
"packageName": "@azure/msal-common",
"email": "sameera.gajjarapu@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-09-21T17:44:17.228Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "prerelease",
"comment": "FOCI - Family of Client IDs feature",
"packageName": "@azure/msal-node",
"email": "sameera.gajjarapu@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-09-21T17:44:34.325Z"
}
9 changes: 9 additions & 0 deletions lib/msal-common/src/authority/Authority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,13 @@ export class Authority {
const response = await this.discoverEndpoints(openIdConfigEndpoint);
this.tenantDiscoveryResponse = response.body;
}

/**
* helper function to generate environment from authority object
* @param authority
*/
static generateEnvironmentFromAuthority(authority: Authority): string {
const reqEnvironment = authority.canonicalAuthorityUrlComponents.HostNameAndPort;
return TrustedAuthority.getCloudDiscoveryMetadata(reqEnvironment) ? TrustedAuthority.getCloudDiscoveryMetadata(reqEnvironment).preferred_cache : "";
}
}

0 comments on commit cf31946

Please sign in to comment.