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

Lots of msal.acquireTokenUser in storage #327

Closed
spottedmahn opened this issue Jun 13, 2018 · 3 comments
Closed

Lots of msal.acquireTokenUser in storage #327

spottedmahn opened this issue Jun 13, 2018 · 3 comments
Labels
bug A problem that needs to be fixed for the feature to function as intended.

Comments

@spottedmahn
Copy link
Contributor

I'm seeing lots of msal.acquireTokenUser| in storage. I suspect there is only supposed to be one?

image

Log file 11:48:34.083 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:34.121 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:34.127 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:34.252 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:34.261 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:34.279 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:34.299 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:34.756 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose renewing accesstoken
11:48:34.758 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose renewToken is called for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:34.770 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Renew token Expected state: 0e9ea888-c279-4a70-8ec3-723392884abe
11:48:34.774 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:34 GMT:12345-0.1.6-Verbose Set loading state to pending for: https://our-tenant.onmicrosoft.com/our-scope:0e9ea888-c279-4a70-8ec3-723392884abe
11:48:35.284 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:35 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:35.717 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:35 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:36.097 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:36 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:36.439 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:36 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:36.914 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:36 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:37.092 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:37 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:37.958 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:37 GMT:12345-0.1.6-Verbose Window is in iframe, acquiring token silently
11:48:46.469 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:46 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:46.514 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:46 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:46.521 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:46 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:46.827 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:46 GMT:12345-0.1.6-Verbose renewing accesstoken
11:48:46.828 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:46 GMT:12345-0.1.6-Verbose renewToken is called for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:46.830 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:46 GMT:12345-0.1.6-Verbose Renew token Expected state: 1fa26ab0-ce9a-4c92-84ea-1aeedb5d38b9
11:48:46.832 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:46 GMT:12345-0.1.6-Verbose Set loading state to pending for: https://our-tenant.onmicrosoft.com/our-scope:1fa26ab0-ce9a-4c92-84ea-1aeedb5d38b9
11:48:47.535 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:47 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:48.265 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:48 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:48.929 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:48 GMT:12345-0.1.6-Verbose Window is in iframe, acquiring token silently
11:48:49.375 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:49 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:49.473 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:49 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:49.562 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:49 GMT:12345-0.1.6-Verbose renewing accesstoken
11:48:49.565 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:49 GMT:12345-0.1.6-Verbose renewToken is called for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:49.568 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:49 GMT:12345-0.1.6-Verbose Renew token Expected state: 3458ba5d-e942-41dc-a3c4-8e0fa7e63e40
11:48:49.571 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:49 GMT:12345-0.1.6-Verbose Set loading state to pending for: https://our-tenant.onmicrosoft.com/our-scope:3458ba5d-e942-41dc-a3c4-8e0fa7e63e40
11:48:49.741 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:49 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:51.641 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:51 GMT:12345-0.1.6-Verbose Window is in iframe, acquiring token silently
11:48:52.224 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:52 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:52.234 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:52 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:52.557 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:52 GMT:12345-0.1.6-Verbose renewing accesstoken
11:48:52.560 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:52 GMT:12345-0.1.6-Verbose renewToken is called for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:52.575 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:52 GMT:12345-0.1.6-Verbose Renew token Expected state: 12ac810d-e582-43cc-bcd9-5da2f5a54d99
11:48:52.578 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:52 GMT:12345-0.1.6-Verbose Set loading state to pending for: https://our-tenant.onmicrosoft.com/our-scope:12ac810d-e582-43cc-bcd9-5da2f5a54d99
11:48:52.747 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:52 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:54.694 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:54 GMT:12345-0.1.6-Verbose Window is in iframe, acquiring token silently
11:48:55.216 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.231 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.237 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.246 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.252 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.261 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.269 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.275 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.472 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose renewing accesstoken
11:48:55.475 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose renewToken is called for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:55.480 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Renew token Expected state: 15a22508-b5e4-421b-9d4c-c9cb2aa15ac0
11:48:55.483 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Set loading state to pending for: https://our-tenant.onmicrosoft.com/our-scope:15a22508-b5e4-421b-9d4c-c9cb2aa15ac0
11:48:55.641 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:55.820 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:55.975 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:55 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:56.147 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:56 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:56.345 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:56 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:56.815 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:56 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:56.985 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:56 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:48:58.604 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:58 GMT:12345-0.1.6-Verbose Window is in iframe, acquiring token silently
11:48:59.222 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:59.424 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:59.632 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:59.663 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose renewing accesstoken
11:48:59.665 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose renewToken is called for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:59.670 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose Renew token Expected state: f9c5b42c-6bea-4dce-9c66-378a70ae08dd
11:48:59.672 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose Set loading state to pending for: https://our-tenant.onmicrosoft.com/our-scope:f9c5b42c-6bea-4dce-9c66-378a70ae08dd
11:48:59.843 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose Token is not in cache for scope:https://our-tenant.onmicrosoft.com/our-scope
11:48:59.961 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:48:59 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:49:00.139 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:49:00 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:49:00.341 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:49:00 GMT:12345-0.1.6-Verbose Renew token for scope: https://our-tenant.onmicrosoft.com/our-scope is in progress. Registering callback
11:49:02.078 our-app.bundle.js:1 msal.js: Wed, 13 Jun 2018 15:49:02 GMT:12345-0.1.6-Verbose Window is in iframe, acquiring token silently
@MarkHerhold
Copy link

I'm seeing this as well and am worried about running out of localstorage space after the app runs for months/years.

@nehaagrawal
Copy link
Contributor

@spottedmahn We are able to reproduce this issue and we will provide a fix in the future release.

@nehaagrawal nehaagrawal added the bug A problem that needs to be fixed for the feature to function as intended. label Jul 9, 2018
@rohitnarula7176
Copy link
Contributor

@spottedmahn @MarkHerhold I have added additional code in the dev branch to delete temporary cache entries in cases of errors like state_mismatch or invalid id_token (nonce missing). Earlier I was only running the cache clean up code in the cases of a successful response. Can you please test with the dev branch and confirm if it is resolved for you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug A problem that needs to be fixed for the feature to function as intended.
Projects
None yet
Development

No branches or pull requests

4 participants