Commit 4f3cd21
Improve Client Registration Error Collection (aws#4993)
* Add try-catch blocks for refresh steps.
* add metric that indicates when token was successfully written to the json & stored in cache
* remove comment
* add more metrics to catch blocks.
* Added reauth for expired client registration
* fix try-catch Exception blocks. remove bad reauth logic
* add metrics to saveClientRegistration
* make metrics same in saveClientRegistration
* Add modifyCredentials to invalidateClientRegistration
* Move save/modify credentials to diskCache
* linter
* saveCredentials moved to writeKey
* saveCredentials moved to writeKey
* capture saveCredentials per saveAccessToken/ClientRegistration calls
* add modifyCredentials + load stages to LoadClientRegistration flow
* remove success metrics
* add logs
* add auth_ModifyConnection to Override
* Fix Tests
* nit fixes
* consistent metrics
* null e message, clean up unused enums
* add more modifyConnection
* nits
* add enums to diskCache stages
* try block success metric
* detekt
---------
Co-authored-by: Manodnya Jaydeep Bhoite <[email protected]>1 parent ecda124 commit 4f3cd21
File tree
4 files changed
+230
-24
lines changed- plugins/core/jetbrains-community
- resources
- src/software/aws/toolkits/jetbrains/core/credentials/sso
- tst/software/aws/toolkits/jetbrains/core/credentials/sso
4 files changed
+230
-24
lines changedLines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
703 | 708 | | |
704 | 709 | | |
705 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
706 | 758 | | |
707 | 759 | | |
708 | 760 | | |
| |||
Lines changed: 96 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
105 | 118 | | |
106 | 119 | | |
107 | 120 | | |
| |||
115 | 128 | | |
116 | 129 | | |
117 | 130 | | |
118 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
119 | 143 | | |
120 | 144 | | |
121 | 145 | | |
122 | 146 | | |
123 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
124 | 159 | | |
125 | 160 | | |
126 | 161 | | |
| |||
143 | 178 | | |
144 | 179 | | |
145 | 180 | | |
146 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
147 | 193 | | |
148 | 194 | | |
149 | 195 | | |
| |||
170 | 216 | | |
171 | 217 | | |
172 | 218 | | |
173 | | - | |
174 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
175 | 222 | | |
| 223 | + | |
176 | 224 | | |
177 | | - | |
| 225 | + | |
178 | 226 | | |
179 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
180 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
181 | 247 | | |
| 248 | + | |
182 | 249 | | |
183 | 250 | | |
184 | 251 | | |
| |||
202 | 269 | | |
203 | 270 | | |
204 | 271 | | |
205 | | - | |
| 272 | + | |
| 273 | + | |
206 | 274 | | |
207 | | - | |
208 | | - | |
209 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
210 | 288 | | |
211 | 289 | | |
212 | 290 | | |
| |||
230 | 308 | | |
231 | 309 | | |
232 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
233 | 317 | | |
234 | 318 | | |
235 | 319 | | |
| |||
0 commit comments