TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Muthu Kumar
NA
3k
276.4k
How to use MS-Adal in Ionic 3Native?
Jul 5 2018 12:49 AM
In my project i want to authenticate the user using Azure. So i'm used MS Adal ionic native in my project.
refered this site. https://ionicframework.com/docs/native/ms-adal/
I followed all steps properly.Here what iam tried.
My Component File
import { MSAdal, AuthenticationContext, AuthenticationResult } from '@ionic-
native/ms-adal';
export
class
AppComponent{
constructor(
private
msAdal: MSAdal,platform: ) {
let authContext: AuthenticationContext=
this
.msAdal.createAuthenticationContext(
'https://login.windows.net/common'
);
authContext.acquireTokenAsync(
'https://graph.windows.net'
,
'13212131232232'
,
'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));
});
}
}
Iam always facing this error only.
I searched lot of thing. None of them useful to solve this problem. So kindly help me to solve this problem. If any help warmly appreciated.
Reply
Answers (
3
)
Cannot find module in angular routing
Error in routing in angular ver 2+