From 38b896dba8e8a331149fe96241551948d3d7248a Mon Sep 17 00:00:00 2001 From: Yitao Dong Date: Tue, 16 Jan 2018 14:42:03 +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 c9feb5b5..6c153a86 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