New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handleRedirectCallback Updates for MSAL 2.0 #1490
Conversation
lib/msal-browser/package.json
Outdated
@@ -40,7 +40,6 @@ | |||
"doc": "npm run doc:generate && npm run doc:deploy", | |||
"doc:generate": "typedoc --mode modules --excludePrivate --excludeProtected --out ./ref ./src/ --gitRevision dev", | |||
"doc:deploy": "gh-pages -d ref -a -e ref/msal-browser", | |||
"pretest": "npm link @azure/msal-common", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore since lerna bootstrap should take care of linking
Are we also planning to port the state changes Jason made in core? As those affect these pieces of code as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
* | ||
* To renew idToken, please pass clientId as the only scope in the Authentication Parameters. | ||
* @returns {Promise.<TokenResponse>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse} object | ||
*/ | ||
async ssoSilent(request: AuthenticationParameters): Promise<TokenResponse> { | ||
// block the reload if it occurred inside a hidden iframe | ||
BrowserUtils.blockReloadInHiddenIframes(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add preFlightRequest()
call here for uniformity? Even if interaction is false, it is in a conditional, so we should be good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to add side effects if there were any. For now I will leave it as is, but I can update it if we find a reason for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, left a few comments.
This PR ports the changes made in msal-core to the new version of the library in #1358.
navigateToLoginRequestUrl changes are already part of this codebase.