Repository navigation
Commit 4a3cd1f
fix: keep the client's scope when refreshing after an expired token (#616)
When an API call returns 401 expired_access_token, the retry loop in
request_json_string_with_retry refreshed the access token without the
scope given to Dropbox(scope=...). The token request then had no
"scope" field, so the new token carried every scope of the original
grant. Pass self._scope, as check_and_refresh_access_token already does.
Co-authored-by: Feldt <204218226+Feldt@users.noreply.github.com>
Co-authored-by: Cody <codyguldner@dropbox.com>1 parent 1147e50 commit 4a3cd1f
2 files changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
787 | 788 | | |
788 | 789 | | |
789 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
790 | 814 | | |
791 | 815 | | |
792 | 816 | | |
| |||
0 commit comments