AzureAD/azure-activedirectory-library-for-js — pull request #53 by DanWahlin (2014-12-04 08:53:02+00:00)
Title: Cleans up the process of defining an endpoint. Here's the standard way:

adalProvider.init(
{
tenant: 'tenantId',
clientId: 'clientId',
endpoints: {
'https://somesite.com/_api', 'https://someResourceIdUri.com'
}
},
$httpProvider
);

Here's the new way with the (minor) modifications to the getResourceForEndpoint() function in adal.js:

adalProvider.init(
{
tenant: 'tenantId',
clientId: 'clientId',
endpoints: [
{
url: 'https://somesite.com/_api',
resourceId: 'https://someResourceIdUri.com'
}
]
},
$httpProvider
);