Socket
Book a DemoInstallSign in
Socket

azure-authenticate-claudia-intercept

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-authenticate-claudia-intercept

Claudia intercept to authenticate request with Azure AD

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

azure-autheniticate-claudia-intercept

A claudiajs intercept to verify that the token supplied with a request is from an authorised Azure AD user.

usage

const ApiBuilder = require('claudia-api-builder');
const api = new ApiBuilder();

const azureAuthenticateIntercept = require('azure-authenticate-claudia-intercept');
const config = {
  tenantId: '4555f184-f629-4962-a914-2720ccc49c5a'
  audience: 'https://graph.windows.net'
}

api.intercept(azureAuthenticateIntercept(api, config));

The next piece of middleware excutes if you're token is valid. All other circumstances will return a 401.

  • the tenantId is used to validate the issuer
  • the audience is used to validate the audience

Keywords

Azure

FAQs

Package last updated on 22 Feb 2017

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