adal-node-delegation
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Adal delegation

This library is used for acquiring downstream tokens via delegation.

An example of which would be web client -> Web Api A -> Web Api B.

Example usage

var adal = require('adal-node-delegation');
var options= {
    tenant: 'mycompany.onmicrosoft.com',
    clientId: 'yourId',
    clientSecret: 'yoursecret'
}
adal.acquireToken(options, theBearerTokenFromRequest).then(r=>{
    //perform request using access token.
});

Package Sidebar

Install

npm i adal-node-delegation

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • rsjspence