Commit 4a13407
committed
refactor(providers): 🔨 replace interactive re-auth with manual expiry
Removes the interactive global re-authentication coordinator logic from Google and Qwen providers. Instead of attempting to launch an interactive OAuth flow (which blocks proxy operations), the system now immediately marks the credential as permanently expired and raises an error.
- Remove `get_reauth_coordinator` usage in `GoogleOAuthBase` and `QwenAuthBase`.
- Implement immediate credential expiration upon token refresh failure.
- Raise `ValueError` with specific instructions to run `credential_tool.py` for recovery.
- Simplify `IFlowAuthBase` expiration logic to strictly enforce manual re-authentication.1 parent 2da1c3f commit 4a13407
File tree
3 files changed
+35
-53
lines changed- src/rotator_library/providers
3 files changed
+35
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
808 | | - | |
| 807 | + | |
809 | 808 | | |
810 | 809 | | |
811 | 810 | | |
| |||
816 | 815 | | |
817 | 816 | | |
818 | 817 | | |
819 | | - | |
| 818 | + | |
820 | 819 | | |
821 | 820 | | |
822 | 821 | | |
| |||
1171 | 1170 | | |
1172 | 1171 | | |
1173 | 1172 | | |
1174 | | - | |
1175 | | - | |
| 1173 | + | |
1176 | 1174 | | |
1177 | 1175 | | |
1178 | 1176 | | |
| |||
1191 | 1189 | | |
1192 | 1190 | | |
1193 | 1191 | | |
1194 | | - | |
| 1192 | + | |
1195 | 1193 | | |
| 1194 | + | |
1196 | 1195 | | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
1209 | 1203 | | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
1217 | 1207 | | |
1218 | 1208 | | |
1219 | 1209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
1007 | | - | |
| 1007 | + | |
1008 | 1008 | | |
| 1009 | + | |
1009 | 1010 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1022 | 1018 | | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1030 | 1022 | | |
1031 | 1023 | | |
1032 | 1024 | | |
| |||
0 commit comments