Closed codeandcloud closed 4 years ago
@codeandcloud what version for angularjs you are using? is this helpful? https://stackoverflow.com/questions/40044892/how-to-load-adal-js-in-webpack-inside-angular-2-azure-ad
Hi, I'm not sure if you've solved this, but I came across the same issue in Typescript. It looks like the documentation link you provided has been updated to use
import * as AuthenticationContext from 'adal-angular';
Which works in my app:
const config: AuthenticationContext.Options = {
clientId: 'abcd-123-etc'
};
const authContext: AuthenticationContext = new AuthenticationContext(config);
I have a SPFX through which I am building client-side web parts using AngularJS and adal-angular
Using this tutorial: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/call-microsoft-graph-from-your-web-part
Now I created a web part, tested a local ajax call and works. So I assume SPFX bootstrap went well. So to implement Azure AD-based authentication and authorization in my web part, I did an
And I wrote this
For which I get two squiggly with similar error
Here is my dependencies list to see if I am missing any.
What am I doing wrong?
Re-post of https://stackoverflow.com/q/51045521/17447 as it seems adal-angular seems more active here.