From 478e6cbb6fb09e177021f2d5f1fe547c6c9e1ef1 Mon Sep 17 00:00:00 2001 From: Omer Cansizoglu Date: Mon, 22 Dec 2014 10:02:52 -0800 Subject: [PATCH 1/2] Update changelog.txt update changelog for v0.0.5 --- changelog.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changelog.txt b/changelog.txt index c199ea45..2c06760f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,8 @@ +Version 0.0.5 +========================== +Storage option for localStorage and sessionStorage. +Simple js sample + Version 0.0.4 ========================== Split adal.js to adal.js and adal-angular.js From b88f81ac783ce3780dcd0b21c201f26e38ca5df1 Mon Sep 17 00:00:00 2001 From: Omer Cansizoglu Date: Mon, 22 Dec 2014 10:13:50 -0800 Subject: [PATCH 2/2] Update README.md update cache location in the readme. --- README.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d7c26ab3..9793367b 100644 --- a/README.md +++ b/README.md @@ -69,12 +69,11 @@ var app = angular.module('demoApp', ['ngRoute', 'AdalAngular']); adalAuthenticationServiceProvider.init( { // Config to specify endpoints and similar for your app - tenant: "52d4b072-9470-49fb-8721-bc3a1c9912a1", - clientId: "e9a5a8b6-8af7-4719-9821-0deef255f68e", - instance: "https://login.windows-ppe.net/", + tenant: "52d4b072-9470-49fb-8721-bc3a1c9912a1", // Optional by default, it sends common + clientId: "e9a5a8b6-8af7-4719-9821-0deef255f68e", // Required //localLoginUrl: "/login", // optional //redirectUri : "your site", optional - endpoints: endpoints // optional + endpoints: endpoints // If you need to send CORS api requests. }, $httpProvider // pass http provider to inject request interceptor to attach tokens ); @@ -174,3 +173,21 @@ app.controller('homeController', ['$scope', '$location', 'adalAuthenticationServ ``` +### Multi-Tenant + +By default, you have multi-tenant support. Adal will set tenant to 'common', if it is not specified in the config. + +### Cache Location +Default storage location is sessionStorage. You can specify localStorage in the config as well. + +```js +adalAuthenticationServiceProvider.init( + { + // Config to specify endpoints and similar for your app + clientId: 'cb68f72f...', + cacheLocation: 'localStorage' // optional cache location default is sessionStorage + }, + $httpProvider // pass http provider to inject request interceptor to attach tokens + ); +``` +