Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #63 from AzureAD/dev
Browse files Browse the repository at this point in the history
update readme for storage
  • Loading branch information
omercs committed Dec 22, 2014
2 parents bae8d71 + b88f81a commit aff1d9e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,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
);
Expand Down Expand Up @@ -176,3 +175,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
);
```

5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit aff1d9e

Please sign in to comment.