This repository has been archived by the owner. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 11/28/2020
4
+
5
+ * Updated MSAL.js to 1.4.4
6
+
3
7
## 08/31/2020
4
8
5
9
* Updated MSAL.js to 1.4.0.
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ const myMSALObj = new Msal.UserAgentApplication(msalConfig);
5
5
function signIn ( ) {
6
6
myMSALObj . loginPopup ( loginRequest )
7
7
. then ( loginResponse => {
8
- console . log ( "id_token acquired at: " + new Date ( ) . toString ( ) ) ;
9
- console . log ( loginResponse ) ;
8
+ // do something with loginResponse
9
+ console . log ( "id_token acquired at: " + new Date ( ) . toString ( ) ) ;
10
10
11
11
if ( myMSALObj . getAccount ( ) ) {
12
12
updateUI ( ) ;
@@ -21,9 +21,9 @@ function signIn() {
21
21
// Learn more about AAD error codes at https://docs.microsoft.com/en-us/azure/active-directory/develop/reference-aadsts-error-codes
22
22
if ( error . errorMessage . indexOf ( "AADB2C90118" ) > - 1 ) {
23
23
myMSALObj . loginPopup ( b2cPolicies . authorities . forgotPassword )
24
- . then ( loginResponse => {
25
- console . log ( loginResponse ) ;
24
+ . then ( ( ) => {
26
25
window . alert ( "Password has been reset successfully. \nPlease sign-in with your new password." ) ;
26
+ myMSALObj . logout ( ) ;
27
27
} )
28
28
}
29
29
}
@@ -67,9 +67,5 @@ function passTokenToApi() {
67
67
}
68
68
69
69
function editProfile ( ) {
70
- myMSALObj . loginPopup ( b2cPolicies . authorities . editProfile )
71
- . then ( tokenResponse => {
72
- console . log ( "access_token acquired at: " + new Date ( ) . toString ( ) ) ;
73
- console . log ( tokenResponse ) ;
74
- } ) ;
70
+ myMSALObj . loginPopup ( b2cPolicies . authorities . editProfile ) ;
75
71
}
Original file line number Diff line number Diff line change 7
7
< link rel ="SHORTCUT ICON " href ="./favicon.svg " type ="image/x-icon ">
8
8
9
9
<!-- msal.min.js can be used in the place of msal.js; included msal.js to make debug easy -->
10
- < script type ="text/javascript " src ="https://alcdn.msauth.net/lib/1.4.0 /js/msal.js " integrity ="sha384-DqrejB/00ccJc4ufFWc+TA3ImOruMihWCj6Wu9hEzRUNdqt4180qlzT0mFa6/Zp2 " crossorigin ="anonymous "> </ script >
10
+ < script type ="text/javascript " src ="https://alcdn.msauth.net/lib/1.4.4 /js/msal.js " integrity ="sha384-fTmwCjhRA6zShZq8Ow5ZkbWwmgp8En46qW6yWpNEkp37MkV50I/V2wjzlEkQ8eWD " crossorigin ="anonymous "> </ script >
11
11
12
12
<!-- msal.js with a fallback to backup CDN -->
13
13
< script type ="text/javascript ">
14
- if ( typeof Msal === 'undefined' ) document . write ( unescape ( "%3Cscript src='https://alcdn.msftauth.net/lib/1.4.0 /js/msal.js' type='text/javascript' %3E%3C/script%3E" ) ) ;
14
+ if ( typeof Msal === 'undefined' ) document . write ( unescape ( "%3Cscript src='https://alcdn.msftauth.net/lib/1.4.4 /js/msal.js' type='text/javascript' %3E%3C/script%3E" ) ) ;
15
15
</ script >
16
16
17
17
<!-- adding Bootstrap 4 for UI components -->
@@ -52,8 +52,8 @@ <h5 id="label" class="card-title">Sign-in with Microsoft Azure AD B2C</h5>
52
52
< script type ="text/javascript " src ="./ui.js "> </ script >
53
53
54
54
<!-- replace next line with authRedirect.js if you would like to use the redirect flow -->
55
- <!-- < script type="text/javascript" src="./authRedirect.js"></script> -->
56
- < script type ="text/javascript " src ="./authPopup.js "> </ script >
55
+ < script type ="text/javascript " src ="./authRedirect.js "> </ script >
56
+ <!-- < script type="text/javascript" src="./authPopup.js"></script> -- >
57
57
< script type ="text/javascript " src ="./api.js "> </ script >
58
58
</ body >
59
59
</ html >
You can’t perform that action at this time.
0 commit comments