Commit 8396401
Implement token autorefresh (Azure#21834)
* removed options bag, enabled and fixed tests
* fix build problems
* initial implementation of configurable autorefresh
* python 2.7 compat changes
* py27 compat changes
* fixed linting problems + comments
* py27 fixed flaky test
* linting issues
* CommunicationTokenCredential async implemenation & tests are added
* split async code not to break py27
* lock issue for python 3.10 is fixed
* asyncio.sleep in async tests are removed
* test refactored
* updates in _shared duplicated in chat
* updates in _shared duplicated in sms
* updates in _shared duplicated in networktraversal
* updates in _shared duplicated in phonenumbers
* lint issue fix in utils
* python 2 compatibility fix for generate_token_with_custom_expiry & fixed sync tests termination
* removed unneccasary user credential tests from sms,chat, networktraversal,phonenumber
* reduced the default refresh interval (api review)
* time renamed to interval (api review)
* removed config for refresh time interval
* sync changes across modalities
* linting issues
* linting issues
* implemented fractional backoff + fixed tests
* unify test with the sync version
* fractional backoff tests + linting
* added changelog records + bumped versions
* Removed ayncio.Lock workaround for a bug in Python 3.10
* fixed linting issues
* phonenumbers changelog updated
* fixed PR comments
* removed user_token_refresh_options from communication SDKs
* fix cspell issues
* type hinting fix
* reverted back type hint fix
* PR comment fix
* reflected changes to the identity package & updated tests
* added samples for CommunicationTokenCredential
* renaming proactive refresh flag
* latest PR comments fix
* samples are refactored
* reflecting shared folder changes to other modalitites
* fixed a typo
* fix for pypy threading issue
* fixed test files
* fixed latest PR comments
Co-authored-by: Aigerim Beishenbekova <aigerimb@WIN-8O5AC9CE1AP.reddog.microsoft.com>
Co-authored-by: Aigerim Beishenbekova <aigerimb@Aigerims-MacBook-Pro-2.local>
Co-authored-by: Aigerim <aykobb@gmail.com>
Co-authored-by: Aigerim Beishenbekova <aigerimb@microsoft.com>1 parent 8b18061 commit 8396401
File tree
57 files changed
+2550
-739
lines changed- .vscode
- sdk/communication
- azure-communication-chat
- samples
- tests
- azure-communication-identity
- azure/communication/identity
- aio
- tests
- azure-communication-networktraversal
- azure-communication-phonenumbers
- azure-communication-sms
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
57 files changed
+2550
-739
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
386 | | - | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
392 | | - | |
| 393 | + | |
| 394 | + | |
393 | 395 | | |
394 | 396 | | |
395 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| 30 | + | |
24 | 31 | | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| 48 | + | |
40 | 49 | | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| 56 | + | |
46 | 57 | | |
| 58 | + | |
47 | 59 | | |
48 | 60 | | |
49 | 61 | | |
| 62 | + | |
50 | 63 | | |
| 64 | + | |
51 | 65 | | |
52 | 66 | | |
53 | 67 | | |
54 | 68 | | |
55 | 69 | | |
| 70 | + | |
56 | 71 | | |
57 | 72 | | |
58 | 73 | | |
| |||
61 | 76 | | |
62 | 77 | | |
63 | 78 | | |
| 79 | + | |
64 | 80 | | |
65 | 81 | | |
66 | 82 | | |
| 83 | + | |
67 | 84 | | |
68 | 85 | | |
69 | 86 | | |
70 | | - | |
| 87 | + | |
| 88 | + | |
Lines changed: 96 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
13 | 11 | | |
14 | | - | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| 52 | + | |
| 53 | + | |
43 | 54 | | |
44 | | - | |
| 55 | + | |
45 | 56 | | |
| 57 | + | |
| 58 | + | |
46 | 59 | | |
| 60 | + | |
47 | 61 | | |
48 | | - | |
49 | 62 | | |
50 | | - | |
| 63 | + | |
51 | 64 | | |
52 | | - | |
| 65 | + | |
53 | 66 | | |
54 | | - | |
55 | | - | |
| 67 | + | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
61 | 73 | | |
62 | 74 | | |
63 | | - | |
64 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
65 | 79 | | |
66 | | - | |
| 80 | + | |
67 | 81 | | |
68 | 82 | | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
73 | | - | |
74 | 87 | | |
| 88 | + | |
| 89 | + | |
75 | 90 | | |
76 | 91 | | |
77 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
78 | 113 | | |
79 | 114 | | |
80 | 115 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
0 commit comments