Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

authentication-adal-pkg

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authentication-adal-pkg

An authentication SDK based on MS ADAL

  • 1.0.51
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Authentication-pkg

General

This package implements authentication for web and native (>= iOS 10, >= Android 4.0.3 & UWP 10), included SSO with Microsoft Authenticator.

This package uses authentication from adal-angular and adal-cordova

Install

npm install authentication-adal-pkg

Usage

import { authentication } from 'authentication-adal-pkg';

API

authentication

Methods

initialize(config): void

Config is an object that should contain following properties:

  • tenant***
  • clientId***
  • redirectUriWeb*
  • redirectUriAndroid (and/or) redirectUriIos** (and/or) redirectUriWindows**
  • authority**
  • resourceUri**
  • loginPolicy
  • editProfilePolicy
  • changePasswordPolicy
  • userId**
  • loginResource

       *required for authentication web

       **required for authentication native

       ***required for authentication web & native

signIn() Promise<{token, error}>

signOut(): Promise<{}>

acquireToken(): Promise<token>

getTokenFromCache(): token

getUser(): Promise<{family_name, given_name, name, upn}>

getUserFromCache(): {family_name, given_name, name, upn}

Keywords

FAQs

Package last updated on 09 Jul 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc