Open billvolt opened 1 month ago
This sample instructs the user to complete msal-prerequisities. Neither the sample nor the msal-angular library instructions clearly state that the user must follow the build and test instructions for msal-browser library.
In addition, this sample makes use of @angular/material which can be installed per step 1 of can-not-find-module-angular-material to address errors such as the following:
./src/app/app.module.ts:5:0-59 - Error: Module not found: Error: Can't resolve '@angular/material/button' in 'C:\Users\myuser.mydomain\Documents\GitHub\microsoft-authentication-library-for-js\samples\msal-angular-v3-samples\angular16-sample-app\src\app'
you are right! the Readme is not clear enough
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
current
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
v3
Public or Confidential Client?
Public
Description
Sample "Angular 16 MSAL Angular v3 Sample" fails when used as instructed.
Error Message
MSAL Logs
N/A
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
download : https://github.com/AzureAD/microsoft-authentication-library-for-js to: C:\Users\myuser.mydomain\Documents\GitHub\microsoft-authentication-library-for-js
In folder: C:\Users\myuser.mydomain\Documents\GitHub\microsoft-authentication-library-for-js\samples\msal-angular-v3-samples\angular16-sample-app execute command: npm install @azure/msal-browser @azure/msal-angular@latest
Edit C:\Users\myuser.mydomain\Documents\GitHub\microsoft-authentication-library-for-js\samples\msal-angular-v3-samples\angular16-sample-app\src/app.modules.ts to hard-code Client ID and Authority
In folder C:\Users\myuser.mydomain\Documents\GitHub\microsoft-authentication-library-for-js\samples\msal-angular-v3-samples\angular16-sample-app execute command: npm start Build errors reported as detailed in "Error Message" box above.
Expected Behavior
Build should have completed without errors.
Identity Provider
ADFS
Browsers Affected (Select all that apply)
None (Server)
Regression
No response
Source
External (Customer)