Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.config(['$locationProvider', '$httpProvider', 'adalAuthenticationServiceProvider', '$routeProvider',
- function ($locationProvider, $httpProvider, adalAuthenticationServiceProvider,
- $routeProvider) {
- $routeProvider.
- when("/", {
- controller: "home",
- templateUrl: "/home.html"
- })
- .when("/test",
- {
- controller: "test",
- templateUrl: "/test.html",
- requireADLogin: true
- });
- adalAuthenticationServiceProvider.init({
- instance: 'https://login.microsoftonline.com/',
- clientId: "me client guid yar",
- tenant: 'metenant.onmicrosoft.com',
- extraQueryParameter: 'nux=1',
- cacheLocation: 'localStorage',
- popUp:true
- },
- $httpProvider
- );
- $locationProvider.html5Mode(true).hashPrefix('!');
- }]);
Add Comment
Please, Sign In to add comment