MS ADAL Integration : Authentication failed Error: User cancelled the flow RequestId

Hi all,

I am try to integrate Ms ADAL on ionic 4 but
i am getting

Authentication failed Error: User cancelled the flow RequestId

Any help pls :slightly_smiling_face:

My code :

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

constructor(
private msAdal: MSAdal
  ) {}

  let authContext: AuthenticationContext = this.msAdal.createAuthenticationContext('https://login.windows.net/common');
      authContext.acquireTokenAsync('https://graph.windows.net', 'MY-ID-CLIENT', 'http://localhost:8000/','','')
      .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));

Solution : https://stackoverflow.com/questions/61956317/ms-adal-integration-authentication-failed-error-user-cancelled-the-flow-reque?noredirect=1#comment109695598_61956317