Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Snippet of app.js with the Adal configuration
var instance=applicationConstants.instance;
var clientId=applicationConstants.clientId;
var tenantName=applicationConstants.tenantName;
var endPoints={'https://{myurl}':'https://{myappuri}.com'};
var apiUrl = applicationConstants.apiUrl;
configurationServiceProvider.init(apiUrl, tenantName, clientId, endPoints);
instance: instance,
tenant: tenantName,
clientId: clientId,
endPoints: endPoints,
extraQueryParameter: 'nux=1',
cacheLocation: 'localStorage', // enable this for IE, as sessionStorage does not work for localhost.
}, $httpProvider);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment