Skip to content
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

[msal-node][#1] SilentFlow support in msal-common #1711

Merged
merged 39 commits into from Jun 17, 2020

Conversation

sameerag
Copy link
Member

@sameerag sameerag commented May 27, 2020

This PR adds support for SilentFlow in msal-common

This unblocks the below use cases for the end user:

  • Ability to call acquireTokenSilent from msal-browser and msal-node when the user has knowledge of the cached account
  • If the user chooses to forceRefresh or if the accessToken has expired, acquires a token with RefreshTokenFlow. This is achieved by calling the service with the cached refreshToken to acquire a new set of tokens.

@sameerag sameerag self-assigned this May 27, 2020
@github-actions github-actions bot added the msal-common Related to msal-common package label Jun 4, 2020
@github-actions github-actions bot added msal-browser Related to msal-browser package msal-node Related to msal-node package labels Jun 4, 2020
@sameerag sameerag changed the base branch from msal-node-merge-request to dev June 4, 2020 21:34
@pkanher617 pkanher617 marked this pull request as ready for review June 11, 2020 00:52
lib/msal-common/src/response/ResponseHandler.ts Outdated Show resolved Hide resolved
lib/msal-common/src/account/IAccount.ts Show resolved Hide resolved
lib/msal-common/package.json Outdated Show resolved Hide resolved
lib/msal-common/src/client/SilentFlowClient.ts Outdated Show resolved Hide resolved
lib/msal-common/src/client/SilentFlowClient.ts Outdated Show resolved Hide resolved
lib/msal-common/src/client/SPAClient.ts Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Jun 13, 2020

Coverage Status

Coverage increased (+1.4%) to 78.007% when pulling a156fcf on msal-node-cache-silentFlow into 504d352 on dev.

Copy link
Contributor

@sangonzal sangonzal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. Some feedback from @jasonnutter looks relevant, chatted offline and agreed that it would be addressed in separate PR.

@pkanher617 pkanher617 merged commit 189cbe7 into dev Jun 17, 2020
@pkanher617 pkanher617 deleted the msal-node-cache-silentFlow branch June 17, 2020 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-browser Related to msal-browser package msal-common Related to msal-common package msal-node Related to msal-node package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants