This repository was archived by the owner on Oct 2, 2024. It is now read-only.
Commit a005934
Peter Nied
Use AcquireToken to force refresh token to be saved in the cache
Fixes #36
When using the AquireTokenByRefreshToken(...) method, the underlying ADAL
system does not guarentee the token will be saved for future use in the
TokenCacheStore. Tracing into the AuthenticationContext implementation,
refreshToken(..., final boolean useCache) is getting set to false in all
of the 'refresh token` scenarios. Using aquireToken and then depending on
the Prompt settings seems to be the best course of action to mitigate this
issue. Note: it is not clear why this behavoir changed.1 parent 2334579 commit a005934
File tree
1 file changed
+8
-11
lines changed- onedrivesdk/src/main/java/com/onedrive/sdk/authentication
1 file changed
+8
-11
lines changedLines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
595 | 594 | | |
596 | 595 | | |
597 | 596 | | |
598 | | - | |
599 | | - | |
| 597 | + | |
600 | 598 | | |
601 | 599 | | |
602 | 600 | | |
| |||
623 | 621 | | |
624 | 622 | | |
625 | 623 | | |
626 | | - | |
627 | | - | |
628 | 624 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
634 | 631 | | |
635 | 632 | | |
636 | 633 | | |
| |||
0 commit comments