Created
May 13, 2016 09:30
-
-
Save SimonDoy/48125437688102eb19fd108e1c7396d4 to your computer and use it in GitHub Desktop.
Snippet of app.js with the Adal configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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