Skip to main content


Active Directory Authentication Library (ADAL) plugin. Active Directory Authentication Library (ADAL) plugin provides easy to use authentication functionality for your Apache Cordova apps by taking advantage of Windows Server Active Directory and Windows Azure Active Directory. Here you can find the source code for the library.

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.


$ npm install cordova-plugin-ms-adal $ npm install @ionic-native/ms-adal $ ionic cap sync

Supported Platforms#

  • Android
  • iOS
  • Windows



Learn more about using Ionic Native components in React


import { MSAdal, AuthenticationContext, AuthenticationResult } from '@ionic-native/ms-adal/ngx';

constructor(private msAdal: MSAdal) {}
let authContext: AuthenticationContext = this.msAdal.createAuthenticationContext('');
authContext.acquireTokenAsync('', 'a5d92493-ae5a-4a9f-bcbf-9f1d354067d3', 'http://MyDirectorySearcherApp')  .then((authResponse: AuthenticationResult) => {    console.log('Token is' , authResponse.accessToken);    console.log('Token will expire on', authResponse.expiresOn);  })  .catch((e: any) => console.log('Authentication failed', e));