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

Authorization Code Flow for Single Page Applications: Token Caching and Cleanup #1185

Conversation

pkanher617
Copy link
Contributor

This PR add token caching and cache cleanup after requests to the authorization code flow for single page applications.

Please review PRs #1181 and #1183 before this PR.

Copy link
Contributor

@jasonnutter jasonnutter left a comment

Choose a reason for hiding this comment

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

A few comments. Good work!

lib/msal-common/src/utils/TimeUtils.ts Show resolved Hide resolved
lib/msal-common/src/response/ResponseHandler.ts Outdated Show resolved Hide resolved
lib/msal-common/src/utils/TimeUtils.ts Outdated Show resolved Hide resolved
lib/msal-common/src/response/ResponseHandler.ts Outdated Show resolved Hide resolved
lib/msal-common/src/response/ResponseHandler.ts Outdated Show resolved Hide resolved
lib/msal-common/src/response/ResponseHandler.ts Outdated Show resolved Hide resolved
lib/msal-common/src/cache/AccessTokenKey.ts Outdated Show resolved Hide resolved
@sameerag
Copy link
Member

Good work! Over all simplifying tokenProcessing the same way you did for loginRequest() helps in readability IMO.

@pkanher617 pkanher617 changed the base branch from authorization-code-flow-handleTokenResponse to authorization-code-flow-base January 14, 2020 23:37
Copy link
Member

@sameerag sameerag left a comment

Choose a reason for hiding this comment

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

Resolved my comments and approving.

@pkanher617 pkanher617 merged commit 5cccb06 into authorization-code-flow-base Jan 15, 2020
@pkanher617 pkanher617 deleted the authorization-code-flow-cachingAndCleaning branch January 23, 2020 21:49
azure-pipelines bot pushed a commit to pkanher617/microsoft-authentication-library-for-js that referenced this pull request Jan 4, 2022
…cachingAndCleaning

Authorization Code Flow for Single Page Applications: Token Caching and Cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants