Skip to content

Instantly share code, notes, and snippets.

@SimonDoy
Created May 13, 2016 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SimonDoy/48125437688102eb19fd108e1c7396d4 to your computer and use it in GitHub Desktop.
Save SimonDoy/48125437688102eb19fd108e1c7396d4 to your computer and use it in GitHub Desktop.
Snippet of app.js with the Adal configuration
var instance=applicationConstants.instance;
var clientId=applicationConstants.clientId;
var tenantName=applicationConstants.tenantName;
var endPoints={'https://{myurl}.azurewebsites.net/api':'https://{myappuri}.com'};
var apiUrl = applicationConstants.apiUrl;
configurationServiceProvider.init(apiUrl, tenantName, clientId, endPoints);
adalProvider.init({
instance: instance,
tenant: tenantName,
clientId: clientId,
endPoints: endPoints,
anonymousEndpoints:{},
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