# backbone.adal

> Active Directory Authentication Library (ADAL) for Backbone

Latest version **0.0.14** (published 2019-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install backbone.adal
pnpm add backbone.adal
yarn add backbone.adal
bun add backbone.adal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2019-10-11 |
| First published | 2017-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Robin Herbots |
| Maintainers | robinherbots |
| Keywords | AAD, azure-active-directory, adal, authentication, backbonejs |

## Links

- npm: https://www.npmjs.com/package/backbone.adal
- Repository: https://github.com/RobinHerbots/backbone.adal
- Homepage: https://github.com/RobinHerbots/backbone.adal#readme
- Issues: https://github.com/RobinHerbots/backbone.adal/issues
- npm.io page: https://npm.io/package/backbone.adal

## Dependencies (3)

- [jquery](https://npm.io/package/jquery.md) ^3.2.1
- [backbone](https://npm.io/package/backbone.md) ^1.3.3
- [adal-angular](https://npm.io/package/adal-angular.md) ^1.0.17

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 0.0.14 (latest) — 2019-10-11
- 0.0.13 — 2018-12-12
- 0.0.12 — 2018-11-09
- 0.0.11 — 2018-09-07
- 0.0.10 — 2018-09-07
- 0.0.9 — 2018-06-11
- 0.0.8 — 2017-10-12
- 0.0.7 — 2017-10-12
- 0.0.6 — 2017-09-08
- 0.0.5 — 2017-06-28
- 0.0.4 — 2017-06-27
- 0.0.3 — 2017-06-26
- 0.0.2 — 2017-05-10
- 0.0.1 — 2017-05-10

## README

# 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](https://github.com/AzureAD/azure-activedirectory-library-for-js)

``` javascript
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
    
```

---
_Source: https://npm.io/package/backbone.adal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
