Azure-Samples / ms-identity-ciam-javascript-tutorial

CIAM JavaScript samples
MIT License
26 stars 37 forks source link

Algo 1/fix vulnerabilities #105

Closed algo-1 closed 3 weeks ago

algo-1 commented 1 month ago

Purpose

Fix vulnerabilities in project dependencies

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ x] Other... Please describe: Update dependencies to fix vulnerabilities

How to Test

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]

For each sample, 
cd into the sample directory and follow the Readme instructions

Other Information

The bug fix is in ms-identity-ciam-javascript-tutorial/2-Authorization/0-call-api-vanillajs, the msal-browser version used in the index.html page does not fully support CIAM (Entra External ID) users. In this PR, msal.min.js is served from the backend and used instead similar to how it is done in ms-identity-ciam-javascript-tutorial/1-Authentication/0-sign-in-vanillajs.