🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

adal-express

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adal-express

Active Directory Authentication Library (ADAL) for Express

1.0.2
latest
Source
npm
Version published
Weekly downloads
1
-90.91%
Maintainers
1
Weekly downloads
 
Created
Source

adal-express

Active Directory Authentication Library (ADAL) for Express

Usage

const adal = require('adal-express');

...

adal(app, options);

Options

options =  {
    serverPortNumber: 443,
    azureTenantId: 'my-company.com',
    azureClientId: "8b3ecd7f-d585-4d36-94c9-3ac1d60992fd",
    azureClientSecret: "etTGallILSzAjePe4gw8v9RSb22tJASS3GnKlDw31R4=",
    azureResourceUri: "https://my-backend-api.my-company.com",
    localApiPath: "/api",
    remoteApiUri: "https://my-backend-api.my-company.com/api",
    sessionCookieName: "my-app.sid",
    sessionCookieSecret: "ac0ac8d3c699538ffe0994544d318f8cf8f7d7e0",
    sessionCookieSecure: true,
    sessionExpiresSeconds: 864000,
    sessionStorageDirectory: "sessions"
};

Login

Issue a GET request to /.auth/login. You must provide the post_login_redirect_uri query parameter and this must be an absolute URI.

Logout

Issue a GET request to /.auth/logout. You must provide the post_logout_redirect_uri query parameter and this must be an absolute URI.

Keywords

ADAL

FAQs

Package last updated on 05 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts