Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

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

$
0
0

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));

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>