AzureAD / azure-activedirectory-library-for-js

The code for ADAL.js and ADAL Angular has been moved to the MSAL.js repo. Please open any issues or PRs at the link below.
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/maintenance/adal-angular
Apache License 2.0
627 stars 372 forks source link

Cannot find name 'AuthenticationContext' #869

Closed qisirui99 closed 4 years ago

qisirui99 commented 5 years ago

I'm using Angular7, and when I follow the below steps, It said can't find AuthenticationContext. The step is

  1. npm install adal-angular
  2. import { } from 'adal-angular'; on my component
  3. create config on my component public config = { tenant: 'xxx', clientId: 'yyy', redirectUri: window.location.origin + '/auth', };
  4. create the AuthenticationContext this.authContext = new AuthenticationContext(this.config);

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Browser:

Library Name

Library version

Library version: 1.0.17

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

jmckennon commented 4 years ago

Without seeing more of your exact code, it's a bit hard to debug what may be the problem here. We recommend following the exact basic steps on our wiki here. Do you think you could provide more information if you're still seeing errors?

Additionally, we recommend everyone using adal js to make the switch to msal js. All current authentication work from Microsoft is delivered through the msal js library here. adal js is still supported only for security fixes, generally.

jmckennon commented 4 years ago

Closing this as we're assuming this is no longer an issue. We recommend that everyone switch to msal js here for advanced features and bugfixes.