Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @salte-auth/azure with all npm packages installed. Try it out:

require("@salte-auth/salte-auth/package.json"); // @salte-auth/salte-auth is a peer dependency. var azure = require("@salte-auth/azure")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@salte-auth/azure v3.0.3

A Salte Auth provider for authenticating with Azure AD!

A Salte Auth provider for authenticating with Azure AD!

DocsDemo

NPM Version NPM Downloads Travis Coveralls

semantic-release

Install

$ npm install @salte-auth/azure

Usage

import { SalteAuth } from '@salte-auth/salte-auth';
import { Azure } from '@salte-auth/azure';
import { Redirect } from '@salte-auth/redirect';

/* 
 * Feel free to try out Salte Auth with this configuration!
 * 
 * It should work with the following domains:
 * - glitch.com
 * - localhost:8081
 */
const auth = new SalteAuth({
  providers: [
    new Azure({
      url: 'https://login.microsoftonline.com/3f6df7ce-5830-4280-ae97-8e4016d1c6d0',
      clientID: 'c679f65f-8070-4719-8798-31c6fc256736'
    })
  ],

  handlers: [
    new Redirect({
      default: true
    })
  ]
});

auth.login('azure');
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free