0.0.14 • Published 5 years ago

backbone.adal v0.0.14

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

backbone.adal

Active Directory Authentication Library (ADAL) for Backbone

Install

$ npm install backbone.adal --save

Usage

Derive your router from Backbone.Adal instead from Backbone.Router and add your azure ad config.
For information about the adal config see https://github.com/AzureAD/azure-activedirectory-library-for-js

import Backbone from "backbone";
import  "backone.adal";

let mainRouting = Backbone.AdalRouter.extend({
    adalConfig: {
        instance: AzureAd.AADInstance,
        tenant: AzureAd.TenantId,
        clientId: AzureAd.ClientId,
        postLogoutRedirectUri: postLogoutRedirectUri,
        redirectUri: window.location.origin + window.location.pathname.replace(/\/$/, ""),
        //cacheLocation: 'localStorage', // enable this for IE, as sessionStorage does not work for localhost.
        anonymousEndpoints: [
            ...
        ],
        endpoints: {
            ...
        },
        extraQueryParameter: "scope=openid,profile,email"
    },
    //extra before routing
    before: function (params, next) { return next(); },
    //extra after routing
    after: function () { },
    
    //continue normal setup for a router
    
0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago