From 96006ce98cbad25d92b7046d80d3076fa6cff196 Mon Sep 17 00:00:00 2001 From: Yitao Dong Date: Tue, 16 Jan 2018 14:37:28 +0800 Subject: [PATCH] Update README.md Add a section on how to make configuration change in app.js --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 10cc152c..961add82 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,22 @@ This TodoList app uses Azure DocumentDB spring boot starter and AngularJS to int ${azure.spring.boot.starter.version}^M ``` + +* Customize Angular JS +In `app.js`, make following changes. The client leverages Azure AD library for JS to handle AAD authentication in single page application. The following snippet of code configures adal provider for your registered app. +``` + adalProvider.init( + { + instance: 'https://login.microsoftonline.com/', + tenant: 'your-aad-tenant', + clientId: 'your-application-id', + extraQueryParameter: 'nux=1', + cacheLocation: 'localStorage', + }, + $httpProvider + ); + +``` ## Code