py2docfx 0.1.19rc2173760__py3-none-any.whl → 0.1.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2docfx/__main__.py +2 -2
- py2docfx/convert_prepare/arg_parser.py +1 -1
- py2docfx/convert_prepare/get_source.py +40 -8
- py2docfx/convert_prepare/git.py +1 -1
- py2docfx/docfx_yaml/logger.py +23 -19
- py2docfx/venv/basevenv/Lib/site-packages/certifi/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/authorization_code.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/broker.py +79 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/chained.py +8 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/default.py +145 -54
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/imds.py +25 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/vscode.py +163 -144
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/workload_identity.py +23 -12
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/__init__.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/pipeline.py +4 -2
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/utils.py +85 -0
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_version.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/authorization_code.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/default.py +112 -56
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/imds.py +27 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/on_behalf_of.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/vscode.py +15 -67
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/workload_identity.py +17 -13
- py2docfx/venv/venv1/Lib/site-packages/certifi/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/cryptography/__about__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/__main__.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/msal/application.py +63 -21
- py2docfx/venv/venv1/Lib/site-packages/msal/broker.py +5 -2
- py2docfx/venv/venv1/Lib/site-packages/msal/exceptions.py +19 -5
- py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py +50 -10
- py2docfx/venv/venv1/Lib/site-packages/msal/sku.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/throttled_http_client.py +4 -1
- {py2docfx-0.1.19rc2173760.dist-info → py2docfx-0.1.20.dist-info}/METADATA +1 -1
- {py2docfx-0.1.19rc2173760.dist-info → py2docfx-0.1.20.dist-info}/RECORD +36 -38
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/linux_vscode_adapter.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/macos_vscode_adapter.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/win_vscode_adapter.py +0 -77
- {py2docfx-0.1.19rc2173760.dist-info → py2docfx-0.1.20.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.19rc2173760.dist-info → py2docfx-0.1.20.dist-info}/top_level.txt +0 -0
@@ -1,13 +1,13 @@
|
|
1
1
|
py2docfx/__init__.py,sha256=kPRhPGPC1JknDotkksG428c1iIgfFr_4_7Jm-llrowY,72
|
2
|
-
py2docfx/__main__.py,sha256=
|
2
|
+
py2docfx/__main__.py,sha256=NDKRx5RhLJP6Z6zFEdGZJje69jxPaGeHLU_2e5GYUO4,5958
|
3
3
|
py2docfx/convert_prepare/__init__.py,sha256=XxtxrP0kmW3ZBHIAoxsPDEHzcgeC0WSnole8Lk6CjKs,11
|
4
|
-
py2docfx/convert_prepare/arg_parser.py,sha256=
|
4
|
+
py2docfx/convert_prepare/arg_parser.py,sha256=7goU287AjAyKGd9d5QKcphMCQOrlPnKpQ_YtdwLSNT8,7618
|
5
5
|
py2docfx/convert_prepare/constants.py,sha256=RC5DqNkqWvx4hb91FrajZ1R9dBFLxcPyoEJ43jdm36E,102
|
6
6
|
py2docfx/convert_prepare/environment.py,sha256=CF8g2hnpwFXsTfvp1O8lwYpR848iCK8bDM2UAWqibEQ,7286
|
7
7
|
py2docfx/convert_prepare/generate_conf.py,sha256=wqs6iyElzJarH-20_qEL9zvZvt5xfBMsGXSXPSZy6wg,2295
|
8
8
|
py2docfx/convert_prepare/generate_document.py,sha256=iTOCMBwkfvZEj5dlEGUq4qynUodaYxJuIrG9R5eGk38,2949
|
9
|
-
py2docfx/convert_prepare/get_source.py,sha256=
|
10
|
-
py2docfx/convert_prepare/git.py,sha256=
|
9
|
+
py2docfx/convert_prepare/get_source.py,sha256=I_-QXXFFraMruDf13xlkwGAs5hDuv-wAjW3w-ylOw2Q,6930
|
10
|
+
py2docfx/convert_prepare/git.py,sha256=Cq76ooxejKlVJiJWWbBhbLZ_JvxqN2ka12L8jkl80b4,6492
|
11
11
|
py2docfx/convert_prepare/install_package.py,sha256=aJxQBwLRPTIKpdtLVl-SaXPaF_OX_H1ZtWmcKD8Zzuk,274
|
12
12
|
py2docfx/convert_prepare/pack.py,sha256=Jjj9ps8ESoKUFmSk6VgNmxOwMhuwirnQ-rhqigH-4VY,1578
|
13
13
|
py2docfx/convert_prepare/package_info.py,sha256=-zrMNeAkHxxzLRjBl1kRehUJy_ugc16yns-xdcAHQIQ,7711
|
@@ -65,7 +65,7 @@ py2docfx/docfx_yaml/convert_enum.py,sha256=HX6qdjDbdbBblx-TH41JXBLIJY3wzL3if-qnL
|
|
65
65
|
py2docfx/docfx_yaml/convert_module.py,sha256=GptO1MRwaQ2Qbu724F0kCDDQQTZe7mWOtrOp3Rzgl-I,2259
|
66
66
|
py2docfx/docfx_yaml/convert_package.py,sha256=Ep7PmvoLInDvY6OU5dveR6iVwyzGRkW3q6lX7yGJ0JE,2109
|
67
67
|
py2docfx/docfx_yaml/directives.py,sha256=zVVuNM_6AU9G6sbqL1UAyHHgPe7bkBWbthXI-PO5ez0,879
|
68
|
-
py2docfx/docfx_yaml/logger.py,sha256=
|
68
|
+
py2docfx/docfx_yaml/logger.py,sha256=V09O17R0YFvLFKKc5-aSXWO4iFufQzpgaxMa6EzNqHM,6817
|
69
69
|
py2docfx/docfx_yaml/miss_reference.py,sha256=NHoQtas0kvFsJXaR4fsk7kHjwV4aJobrr_Q30HaUc_I,2450
|
70
70
|
py2docfx/docfx_yaml/nodes.py,sha256=tBDi35jLJArlobl07DKOkmH2qz7dudXLp_kTUfR_r2w,412
|
71
71
|
py2docfx/docfx_yaml/parameter_utils.py,sha256=04wQCtbS-G2hWM5UGkL22s10LZLUbqbh3RM9rWGOToI,10897
|
@@ -166,7 +166,7 @@ py2docfx/venv/basevenv/Lib/site-packages/babel/messages/mofile.py,sha256=Qf0X-vI
|
|
166
166
|
py2docfx/venv/basevenv/Lib/site-packages/babel/messages/plurals.py,sha256=jsEnofU5b4PZKIloX0MjchYSxD3r1RRZ_GfEVRuETWQ,7495
|
167
167
|
py2docfx/venv/basevenv/Lib/site-packages/babel/messages/pofile.py,sha256=lMllxTXYRBa3m8wVsxXsJsayjCOePKYYZtFSZU5DVF4,25955
|
168
168
|
py2docfx/venv/basevenv/Lib/site-packages/babel/messages/setuptools_frontend.py,sha256=m1l9NHuawj1pSncZeC82cUJfdwxib_C7JSUb_2EhbUM,3485
|
169
|
-
py2docfx/venv/basevenv/Lib/site-packages/certifi/__init__.py,sha256=
|
169
|
+
py2docfx/venv/basevenv/Lib/site-packages/certifi/__init__.py,sha256=0a5ro4KTYep37Oo0Z8TycCPXaDlOEtvuj2pNWZ_1t8Y,94
|
170
170
|
py2docfx/venv/basevenv/Lib/site-packages/certifi/__main__.py,sha256=xBBoj905TUWBLRGANOcf7oi6e-3dMP4cEoG9OyMs11g,243
|
171
171
|
py2docfx/venv/basevenv/Lib/site-packages/certifi/core.py,sha256=XFXycndG5pf37ayeF8N32HUuDafsyhkVMbO4BAPWHa0,3394
|
172
172
|
py2docfx/venv/basevenv/Lib/site-packages/certifi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -1996,36 +1996,37 @@ py2docfx/venv/venv1/Lib/site-packages/azure/identity/_constants.py,sha256=BHS6Wq
|
|
1996
1996
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_enums.py,sha256=kaZnPeoAQiEYVW19_BaXFaP_rt4viwfiIRPzYuo5rGs,2399
|
1997
1997
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_exceptions.py,sha256=YxKx_rcD5iWl6tcH5SzQmmQIG4ZGGNDlNgMGphYbMNM,2140
|
1998
1998
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_persistent_cache.py,sha256=zjPU1HBHWGxXuv6R09zBp5uPKj0sd9c8rEUzu84sA90,5835
|
1999
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_version.py,sha256=
|
1999
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_version.py,sha256=47B6a3HLsY9nZLZBGxBr53KPstWpW3x4s8dgbyGtAuo,170
|
2000
2000
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2001
2001
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/__init__.py,sha256=HiD0uRVJ7Okw8ICCzWrMWKeEvf2RUa3DuwdDUgIxg5s,1756
|
2002
2002
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/app_service.py,sha256=mc0GqUWXLjcgkZX64IV3aVmJd1M1-fo5h6ssVe0Iklo,1424
|
2003
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/authorization_code.py,sha256=
|
2003
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/authorization_code.py,sha256=JeVG45l8AkwI3Pky6jFYdIk7Dv47UITTWntZ5xnT8lQ,7251
|
2004
2004
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/azd_cli.py,sha256=G7gUKrdOX0E2NHe05PiubmaL7V9Gfb8gVJNAWkJmJrM,12464
|
2005
2005
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/azure_arc.py,sha256=2B5SYKKGIEg8y8kC_zccSspxqVllKrIgP4WF_WD9ky0,4907
|
2006
2006
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/azure_cli.py,sha256=mNaj1ATgKVxlRnzq2c22eq_UiuYCdi0JlhK7uR2lIyo,11557
|
2007
2007
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/azure_ml.py,sha256=qLMRTkkecgZRwA6HoXf-9GoEp0HddbPoYioBcWYwOF4,3000
|
2008
2008
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/azure_pipelines.py,sha256=QtMuhYSeSDMJo76W5OHJORRu2IRb61ueKyZoi8R2bck,8566
|
2009
2009
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/azure_powershell.py,sha256=LMIPWbaboXrU_IjeR65DkThUpfq0jxR7gvNDHCKU-80,11378
|
2010
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/broker.py,sha256=it-HSh0qPSKygD3Q8tr-4iyIdcatsEqYeYJB0YKXzC0,3564
|
2010
2011
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/browser.py,sha256=mkkIqHvkNPYwqcPHRQscx_qtQWDpf0TNBuxVu2ynf6Q,8307
|
2011
2012
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/certificate.py,sha256=uHVCvvdcjkIuamb_66ANHh6TVQAO9lUhcSjxr4J2V-0,9179
|
2012
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/chained.py,sha256=
|
2013
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/chained.py,sha256=zBrS7HMO-2hKAZFaXK_vXeVrLp_pEZOpkebEJfUHcnw,10313
|
2013
2014
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/client_assertion.py,sha256=i8S8rK86FQaFaAhVS_jaTJljCYufvsXA0AzG9fDCyIc,3517
|
2014
2015
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/client_secret.py,sha256=U4d2uOTMfXCfjTBtZLpM1_uvVDSqQgtfPlMx88oqO_8,3114
|
2015
2016
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/cloud_shell.py,sha256=yyuxWKBM8cp0EI6IbVuGP2LvXfkidV0se5NABBuMH7k,1928
|
2016
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/default.py,sha256=
|
2017
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/default.py,sha256=xNls14MwoqWaE4xg3mQ1S0oMjHOD0eg2jdkhWfL_K9g,19912
|
2017
2018
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/device_code.py,sha256=DXW99i6FiKJ1EeTbqMqLbRZW8zpHpJkuyURHSe56i8E,6763
|
2018
2019
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/environment.py,sha256=8AC3oZjMk2SPkI3Uir-wMvSb3LaZCa04k5et3YPvbdE,9369
|
2019
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/imds.py,sha256=
|
2020
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/imds.py,sha256=KyQrN3mspRGngd60gP2sljIW_iEPaKXrL-GkAvVSd-Y,6755
|
2020
2021
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/managed_identity.py,sha256=xCvspdwk3MP1UFL_489PfLaYOlmOktdO265fowR4ZUU,10332
|
2021
2022
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/on_behalf_of.py,sha256=e8av70lj1hwwqrQc7bX1MI5bH5OWsZA6LZvy1ib_M4U,9014
|
2022
2023
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/service_fabric.py,sha256=JNjcqb69fMffWzk4VmjYfxYYpzEJGl3xUKwvRIra53o,2724
|
2023
2024
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/shared_cache.py,sha256=Sr5sFj8QHz6IK69BxrcsTVLargk45BDzqrctKdOfQZE,9021
|
2024
2025
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/silent.py,sha256=8gq0CyQOThOkAF6KF9ku1YO1JuBdY_ZgJOXl-BHFK2o,9329
|
2025
2026
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/user_password.py,sha256=IoVzYb3qnJCYeMdhKYDzGK-Mp6Um9n5xiTfZNshmf1I,5403
|
2026
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/vscode.py,sha256=
|
2027
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/workload_identity.py,sha256=
|
2028
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/__init__.py,sha256=
|
2027
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/vscode.py,sha256=MDBVFoQGcga2UCe9XKAm_jiqAh449avICK20CwtnGw0,11019
|
2028
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_credentials/workload_identity.py,sha256=SMzl9_2Xl9koTc5dIh86yAUGgHkUfh90_yOBjqMdEdk,4643
|
2029
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/__init__.py,sha256=uZRkstipcmUb8LSA762GSlPyCjR7WJr2jJagpRAxzo0,1658
|
2029
2030
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/aad_client.py,sha256=O8b9pnlc6HIRdV0YqrCjYaMOt1z8mYKPE4bOdrYtR-Q,3299
|
2030
2031
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/aad_client_base.py,sha256=XrKbEcpvSLbagJUvucRkNSze4cLRYYFMH6qh2ASMgf8,17087
|
2031
2032
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/aadclient_certificate.py,sha256=_rB9Y8sYtzcRYRnoQyDPIygqLr3kJFbmL70H3shfXgs,2925
|
@@ -2034,23 +2035,20 @@ py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/client_credential
|
|
2034
2035
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/decorators.py,sha256=uM-aP4FsVYT2aR1BX41kdvHHs83XxB-O0vYzRq3YUw4,2877
|
2035
2036
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/get_token_mixin.py,sha256=l1tAeMvUDwxvagsZdFcrhVvch8eDqr4QcEjQqBH1kyY,7314
|
2036
2037
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/interactive.py,sha256=mJ7h_Ptv_ujMQbHLf1_PE9yw1Igc7rw6Pb632gx68PM,13938
|
2037
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/linux_vscode_adapter.py,sha256=LL2ImHX7IzfSwOQ0BuvOrQ1do_X6fo_o3b3r4O77nI8,2952
|
2038
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/macos_vscode_adapter.py,sha256=sRcYxS_xaiSaRmruqUH3_wXmDA6BWRACXNs8dnvBkNw,1202
|
2039
2038
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/managed_identity_base.py,sha256=pBEoUq39MElBnuvqwEAsjco2I4wznp3nxwgDkW5qiPo,2416
|
2040
2039
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/managed_identity_client.py,sha256=mWD_pDAjsFaUUdiVo5oupe9jt8mCEzraNs0_Wtha8_g,5982
|
2041
2040
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/msal_client.py,sha256=QgBTA_rgMLCfajktZOvDwEMkecudyPZIlGU--6m2M2o,5871
|
2042
2041
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/msal_credentials.py,sha256=yEzbeHljbMFHJrwgQuIo6YO7jbaCx69x3e_DFXi4GAg,6124
|
2043
2042
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/msal_managed_identity_client.py,sha256=rd8rRTye492y940_rUJLUgFBeMaKOBUDBa0NTUuDvjg,9695
|
2044
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/pipeline.py,sha256=
|
2043
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/pipeline.py,sha256=xQSTYxi3hGw74zR38HisQDL5p84BajDpbcArX2e2awM,3115
|
2045
2044
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/shared_token_cache.py,sha256=Q4sGmpQrrxWu0yXRuZ66ndqxa8CjHORvTp2Suegz2sY,12555
|
2046
2045
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/user_agent.py,sha256=aOlTYL7cTqLLoRppt0oKao64YtYnUrw6BAfDc9pghZg,319
|
2047
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/utils.py,sha256=
|
2048
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/win_vscode_adapter.py,sha256=XM3JW1YeY9-4p3aauJThbBKVdmQ-RD-pzaAFrS8QhOc,2444
|
2046
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/_internal/utils.py,sha256=m0Xoy4skxTXzn1Jutvrf_XY4NKsyV8Hp7Po0HcNPOkU,9497
|
2049
2047
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/__init__.py,sha256=sXPK0GJ7WNbMWQaTvbG1SXa2riULBZvayDTlLRzTosY,1325
|
2050
2048
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_bearer_token_provider.py,sha256=2vUCmdarROmCg_tIuY20SIVP5J7NIO-spprGLrt7TDE,1783
|
2051
2049
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/__init__.py,sha256=HQ-rmMldjHhb9kHne-0zbGFcIPraamf_Y4l2tJQ8LBg,1482
|
2052
2050
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/app_service.py,sha256=xb8LIoDfAdCZj60CiaKtdjUDLecNbLfkuC9Xy1ItwuE,836
|
2053
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/authorization_code.py,sha256=
|
2051
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/authorization_code.py,sha256=3ZI8kT-X8PhxLDFEZdLWXpZAiqa5drpOtRX8cN1T0cs,7435
|
2054
2052
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/azd_cli.py,sha256=wVYeEv74vzXKMRmESJxXl0RpU5W4Tenghdy8CYPh6C4,11040
|
2055
2053
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/azure_arc.py,sha256=ottnsKp-t7mpUXrn1I_TtgHKqT75WsZR5qGMkz7_mF0,1857
|
2056
2054
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/azure_cli.py,sha256=euWikYiFLzCcwjo5eZgYhPTCQXOSgijuPfuSt0mN7zo,10225
|
@@ -2062,15 +2060,15 @@ py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/chained.py
|
|
2062
2060
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/client_assertion.py,sha256=f46y6n1fMTTBaEZaMc9Dux7TwcSwGXkQq4pScLf8Jic,3511
|
2063
2061
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/client_secret.py,sha256=JHI9N_0qzvKpV_RvMMjChfnPMRtbPb7FF_n6GIVnKRk,3218
|
2064
2062
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/cloud_shell.py,sha256=jJ4b3hacR-Mzk3vcwvzbxwF4DrN60uyHv1BIhUzD3bA,1225
|
2065
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/default.py,sha256=
|
2063
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/default.py,sha256=FEffg08PNyGI833urHZFr3jtLf9msAgXyoUy0uRD0OY,16797
|
2066
2064
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/environment.py,sha256=89Ow1EQ000EN66axjgDDvJlb4uLAdgvzYoYGNytAzdg,7904
|
2067
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/imds.py,sha256=
|
2065
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/imds.py,sha256=DRZ10S8agMe0VD1m2FZzT1F5bhHZNZgrEgL36gA1QgA,5328
|
2068
2066
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/managed_identity.py,sha256=JlZqlGuCQP0iSlUF1LTsFSNTD6nZYoLypk3cyTbj-Co,9391
|
2069
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/on_behalf_of.py,sha256=
|
2067
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/on_behalf_of.py,sha256=8XSs8iZpy_JY241VcihE7m-5ixDPRkxlz4tSCwEuH4M,7371
|
2070
2068
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/service_fabric.py,sha256=xJtnzR__JzHixCV63E-P1OS3Ecqh7qsTfXMMEUG4BIA,1808
|
2071
2069
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/shared_cache.py,sha256=EIdUzL98uKA4Mncm_7hcGo-R9qqTbaCAzx15JM_DVO8,7434
|
2072
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/vscode.py,sha256=
|
2073
|
-
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/workload_identity.py,sha256=
|
2070
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/vscode.py,sha256=NPIBbyp4C3u9hk3hjOYyJhrtnM8YziUUqyUBW_JV5wo,3984
|
2071
|
+
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_credentials/workload_identity.py,sha256=owUfXZ94_OPqbnpYk0uNscLv9drNyMymekONExvGI6s,3903
|
2074
2072
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_internal/__init__.py,sha256=kqVXG7igSXSP_Gi4MzJPHoXaudlQV18A7U1qNEvXeMM,838
|
2075
2073
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_internal/aad_client.py,sha256=nDPSqqrFjtmm5xWLc7exa3aWxDvhwwge8yEZ__5ZtrQ,4260
|
2076
2074
|
py2docfx/venv/venv1/Lib/site-packages/azure/identity/aio/_internal/decorators.py,sha256=aw8JChj6khlmXPkjbMtypcvUgwfyIiUlUF1227nFREI,2940
|
@@ -2081,7 +2079,7 @@ py2docfx/venv/venv1/Lib/site-packages/cachetools/__init__.py,sha256=cutUU6fB1bIM
|
|
2081
2079
|
py2docfx/venv/venv1/Lib/site-packages/cachetools/_decorators.py,sha256=4_u0GL89t2BOLGwnK8CueiFtyHKK2zydoHj9aqnsMM4,3832
|
2082
2080
|
py2docfx/venv/venv1/Lib/site-packages/cachetools/func.py,sha256=aOVfSkuNWMRADpkHZGK7LeJ_VZ8wljzbRwIAliOuhAg,3719
|
2083
2081
|
py2docfx/venv/venv1/Lib/site-packages/cachetools/keys.py,sha256=AOgfoi-oioBOnEEk115_9qs0HKISrYnbcV4F0hyZ1yk,1777
|
2084
|
-
py2docfx/venv/venv1/Lib/site-packages/certifi/__init__.py,sha256=
|
2082
|
+
py2docfx/venv/venv1/Lib/site-packages/certifi/__init__.py,sha256=0a5ro4KTYep37Oo0Z8TycCPXaDlOEtvuj2pNWZ_1t8Y,94
|
2085
2083
|
py2docfx/venv/venv1/Lib/site-packages/certifi/__main__.py,sha256=xBBoj905TUWBLRGANOcf7oi6e-3dMP4cEoG9OyMs11g,243
|
2086
2084
|
py2docfx/venv/venv1/Lib/site-packages/certifi/core.py,sha256=XFXycndG5pf37ayeF8N32HUuDafsyhkVMbO4BAPWHa0,3394
|
2087
2085
|
py2docfx/venv/venv1/Lib/site-packages/certifi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -2116,7 +2114,7 @@ py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/utils.py,sha256=XtWIQeO
|
|
2116
2114
|
py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/version.py,sha256=wtpyUZ7M57rCLclP3QjzRD0Nj2hvnMOzLZI-vwfTdWs,123
|
2117
2115
|
py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/cli/__init__.py,sha256=d9MUx-1V_qD3x9igIy4JT4oC5CU0yjulk7QyZWeRFhg,144
|
2118
2116
|
py2docfx/venv/venv1/Lib/site-packages/charset_normalizer/cli/__main__.py,sha256=-pdJCyPywouPyFsC8_eTSgTmvh1YEvgjsvy1WZ0XjaA,13027
|
2119
|
-
py2docfx/venv/venv1/Lib/site-packages/cryptography/__about__.py,sha256=
|
2117
|
+
py2docfx/venv/venv1/Lib/site-packages/cryptography/__about__.py,sha256=RnD9U0BIw5faHrSDTwjUlIAfXh3dgsDx7IzMk4sARXs,445
|
2120
2118
|
py2docfx/venv/venv1/Lib/site-packages/cryptography/__init__.py,sha256=QDuQ3te_14R9iGF-2Q5yEwD1FTJrCWqpnuhlMIJBsno,762
|
2121
2119
|
py2docfx/venv/venv1/Lib/site-packages/cryptography/exceptions.py,sha256=835EWILc2fwxw-gyFMriciC2SqhViETB10LBSytnDIc,1087
|
2122
2120
|
py2docfx/venv/venv1/Lib/site-packages/cryptography/fernet.py,sha256=3Cvxkh0KJSbX8HbnCHu4wfCW7U0GgfUA3v_qQ8a8iWc,6963
|
@@ -2553,20 +2551,20 @@ py2docfx/venv/venv1/Lib/site-packages/jwt/types.py,sha256=VnhGv_VFu5a7_mrPoSCB7H
|
|
2553
2551
|
py2docfx/venv/venv1/Lib/site-packages/jwt/utils.py,sha256=hxOjvDBheBYhz-RIPiEz7Q88dSUSTMzEdKE_Ww2VdJw,3640
|
2554
2552
|
py2docfx/venv/venv1/Lib/site-packages/jwt/warnings.py,sha256=50XWOnyNsIaqzUJTk6XHNiIDykiL763GYA92MjTKmok,59
|
2555
2553
|
py2docfx/venv/venv1/Lib/site-packages/msal/__init__.py,sha256=U8y4dCI4xqYgP0iQA19EQsm7ESUqitGR-xySLGX66EA,2089
|
2556
|
-
py2docfx/venv/venv1/Lib/site-packages/msal/__main__.py,sha256
|
2557
|
-
py2docfx/venv/venv1/Lib/site-packages/msal/application.py,sha256=
|
2554
|
+
py2docfx/venv/venv1/Lib/site-packages/msal/__main__.py,sha256=gk_iJRPMl-9Zq8qx-wylPHiT_h1suhIeR0ir1wR9160,16516
|
2555
|
+
py2docfx/venv/venv1/Lib/site-packages/msal/application.py,sha256=snKVtshd4wU5UVERSqB2uKuVRU272YoEoF5qsbok-CM,130378
|
2558
2556
|
py2docfx/venv/venv1/Lib/site-packages/msal/auth_scheme.py,sha256=biI1W2ZEV2u5cQpsF1JK2ykLuyTCKaRZicgOa2kQqaA,1505
|
2559
2557
|
py2docfx/venv/venv1/Lib/site-packages/msal/authority.py,sha256=gT86mPhoxmVQ0aU6hOyOcMnXGKpbxDWKhNRWcPgQXAc,11314
|
2560
|
-
py2docfx/venv/venv1/Lib/site-packages/msal/broker.py,sha256=
|
2558
|
+
py2docfx/venv/venv1/Lib/site-packages/msal/broker.py,sha256=fdcLXhnWAizF3LrJVqJHsnavamTByeGczLjVaJDcXrM,12956
|
2561
2559
|
py2docfx/venv/venv1/Lib/site-packages/msal/cloudshell.py,sha256=KXTRgX5zfRuNqRfVQs_buS8gU9N40sc2C5rBi79bnBk,5319
|
2562
|
-
py2docfx/venv/venv1/Lib/site-packages/msal/exceptions.py,sha256=
|
2560
|
+
py2docfx/venv/venv1/Lib/site-packages/msal/exceptions.py,sha256=UqFHnCfSKXYZVlZEZDHvBCRe3-0b-YoGUS9PilsJcvY,2518
|
2563
2561
|
py2docfx/venv/venv1/Lib/site-packages/msal/individual_cache.py,sha256=K2e72EP3eEoDvGQc9OWY1rvQxJmO4IOqcaG-F7cHuJk,13090
|
2564
|
-
py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py,sha256=
|
2562
|
+
py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py,sha256=F_Q_MCrO7tx2kQBRJA1UVN9oTmr2XYShExPNRwDzlZk,32212
|
2565
2563
|
py2docfx/venv/venv1/Lib/site-packages/msal/mex.py,sha256=_oub-3zNJUpt1KTRt_XUMxEMTOjHhLZQjzb_VLFHVHc,6455
|
2566
2564
|
py2docfx/venv/venv1/Lib/site-packages/msal/region.py,sha256=N7Z43sbwjnQfoUQC6TBR8xy3v1oY_rI8hH0-AfiXa8g,1738
|
2567
|
-
py2docfx/venv/venv1/Lib/site-packages/msal/sku.py,sha256=
|
2565
|
+
py2docfx/venv/venv1/Lib/site-packages/msal/sku.py,sha256=aPQf6TUIo37-jimfXpnetT7rrJ8vjmyJbbcBefjDQR8,183
|
2568
2566
|
py2docfx/venv/venv1/Lib/site-packages/msal/telemetry.py,sha256=ePllJwgA14s-n70prBndAoyiQAMYy1aVam6VXexU0Ac,3192
|
2569
|
-
py2docfx/venv/venv1/Lib/site-packages/msal/throttled_http_client.py,sha256=
|
2567
|
+
py2docfx/venv/venv1/Lib/site-packages/msal/throttled_http_client.py,sha256=No8Z2zGQhyxBMFi_mum1S1sCyB7_IaN258JM0vHAhIA,9023
|
2570
2568
|
py2docfx/venv/venv1/Lib/site-packages/msal/token_cache.py,sha256=C7wT4_VXQ3dDYxVIEv-Dm_m0Xo2ZJFXWkH21XnUVLcU,20713
|
2571
2569
|
py2docfx/venv/venv1/Lib/site-packages/msal/wstrust_request.py,sha256=2S5eKxmK8fklnirBGewtdhkcA7O8JvE1KhJ8-c9k4yw,6098
|
2572
2570
|
py2docfx/venv/venv1/Lib/site-packages/msal/wstrust_response.py,sha256=QfmdjMEf1vED8vGmtIMWI1UvspUHtFJ8ACjMfecje2g,4599
|
@@ -3913,7 +3911,7 @@ py2docfx/venv/venv1/Lib/site-packages/wheel/_commands/convert.py,sha256=0wSJMU0m
|
|
3913
3911
|
py2docfx/venv/venv1/Lib/site-packages/wheel/_commands/pack.py,sha256=o3iwjfRHl7N9ul-M2kHbewLJZnqBLAWf0tzUCwoiTMw,3078
|
3914
3912
|
py2docfx/venv/venv1/Lib/site-packages/wheel/_commands/tags.py,sha256=Rv2ySVb8-qX3osKp3uJgxcIMXkjt43XUD0-zvC6KvnY,4775
|
3915
3913
|
py2docfx/venv/venv1/Lib/site-packages/wheel/_commands/unpack.py,sha256=Y_J7ynxPSoFFTT7H0fMgbBlVErwyDGcObgme5MBuz58,1021
|
3916
|
-
py2docfx-0.1.
|
3917
|
-
py2docfx-0.1.
|
3918
|
-
py2docfx-0.1.
|
3919
|
-
py2docfx-0.1.
|
3914
|
+
py2docfx-0.1.20.dist-info/METADATA,sha256=0aABzr2TSjd8emrysLCVLTxpBq0Ke30P1GAHLUtYWlk,537
|
3915
|
+
py2docfx-0.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
3916
|
+
py2docfx-0.1.20.dist-info/top_level.txt,sha256=5dH2uP81dczt_qQJ38wiZ-gzoVWasfiJALWRSjdbnYU,9
|
3917
|
+
py2docfx-0.1.20.dist-info/RECORD,,
|
@@ -1,100 +0,0 @@
|
|
1
|
-
# ------------------------------------
|
2
|
-
# Copyright (c) Microsoft Corporation.
|
3
|
-
# Licensed under the MIT License.
|
4
|
-
# ------------------------------------
|
5
|
-
import os
|
6
|
-
import json
|
7
|
-
import logging
|
8
|
-
import ctypes as ct
|
9
|
-
from .._constants import VSCODE_CREDENTIALS_SECTION
|
10
|
-
|
11
|
-
_LOGGER = logging.getLogger(__name__)
|
12
|
-
|
13
|
-
|
14
|
-
def _c_str(string):
|
15
|
-
return ct.c_char_p(string.encode("utf-8"))
|
16
|
-
|
17
|
-
|
18
|
-
class _SECRET_SCHEMA_ATTRIBUTE(ct.Structure):
|
19
|
-
_fields_ = [
|
20
|
-
("name", ct.c_char_p),
|
21
|
-
("type", ct.c_uint),
|
22
|
-
]
|
23
|
-
|
24
|
-
|
25
|
-
class _SECRET_SCHEMA(ct.Structure):
|
26
|
-
_fields_ = [
|
27
|
-
("name", ct.c_char_p),
|
28
|
-
("flags", ct.c_uint),
|
29
|
-
("attributes", _SECRET_SCHEMA_ATTRIBUTE * 2),
|
30
|
-
]
|
31
|
-
|
32
|
-
|
33
|
-
_PSECRET_SCHEMA = ct.POINTER(_SECRET_SCHEMA)
|
34
|
-
|
35
|
-
|
36
|
-
try:
|
37
|
-
_libsecret = ct.cdll.LoadLibrary("libsecret-1.so.0")
|
38
|
-
_libsecret.secret_password_lookup_sync.argtypes = [
|
39
|
-
ct.c_void_p,
|
40
|
-
ct.c_void_p,
|
41
|
-
ct.c_void_p,
|
42
|
-
ct.c_char_p,
|
43
|
-
ct.c_char_p,
|
44
|
-
ct.c_char_p,
|
45
|
-
ct.c_char_p,
|
46
|
-
ct.c_void_p,
|
47
|
-
]
|
48
|
-
_libsecret.secret_password_lookup_sync.restype = ct.c_char_p
|
49
|
-
_libsecret.secret_password_free.argtypes = [ct.c_char_p]
|
50
|
-
except OSError:
|
51
|
-
_libsecret = None # type: ignore
|
52
|
-
|
53
|
-
|
54
|
-
def _get_refresh_token(service_name, account_name):
|
55
|
-
if not _libsecret:
|
56
|
-
return None
|
57
|
-
|
58
|
-
err = ct.c_int()
|
59
|
-
attributes = [_SECRET_SCHEMA_ATTRIBUTE(_c_str("service"), 0), _SECRET_SCHEMA_ATTRIBUTE(_c_str("account"), 0)]
|
60
|
-
pattributes = (_SECRET_SCHEMA_ATTRIBUTE * 2)(*attributes)
|
61
|
-
schema = _SECRET_SCHEMA()
|
62
|
-
pschema = _PSECRET_SCHEMA(schema)
|
63
|
-
ct.memset(pschema, 0, ct.sizeof(schema))
|
64
|
-
schema.name = _c_str("org.freedesktop.Secret.Generic") # pylint: disable=attribute-defined-outside-init
|
65
|
-
schema.flags = 2 # pylint: disable=attribute-defined-outside-init
|
66
|
-
schema.attributes = pattributes # pylint: disable=attribute-defined-outside-init
|
67
|
-
p_str = _libsecret.secret_password_lookup_sync(
|
68
|
-
pschema,
|
69
|
-
None,
|
70
|
-
ct.byref(err),
|
71
|
-
_c_str("service"),
|
72
|
-
_c_str(service_name),
|
73
|
-
_c_str("account"),
|
74
|
-
_c_str(account_name),
|
75
|
-
None,
|
76
|
-
)
|
77
|
-
if err.value == 0 and p_str:
|
78
|
-
return p_str.decode("utf-8")
|
79
|
-
|
80
|
-
return None
|
81
|
-
|
82
|
-
|
83
|
-
def get_user_settings():
|
84
|
-
try:
|
85
|
-
path = os.path.join(os.environ["HOME"], ".config", "Code", "User", "settings.json")
|
86
|
-
with open(path, encoding="utf-8") as file:
|
87
|
-
return json.load(file)
|
88
|
-
except Exception as ex: # pylint:disable=broad-except
|
89
|
-
_LOGGER.debug('Exception reading VS Code user settings: "%s"', ex, exc_info=_LOGGER.isEnabledFor(logging.DEBUG))
|
90
|
-
return {}
|
91
|
-
|
92
|
-
|
93
|
-
def get_refresh_token(cloud_name):
|
94
|
-
try:
|
95
|
-
return _get_refresh_token(VSCODE_CREDENTIALS_SECTION, cloud_name)
|
96
|
-
except Exception as ex: # pylint:disable=broad-except
|
97
|
-
_LOGGER.debug(
|
98
|
-
'Exception retrieving VS Code credentials: "%s"', ex, exc_info=_LOGGER.isEnabledFor(logging.DEBUG)
|
99
|
-
)
|
100
|
-
return None
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# ------------------------------------
|
2
|
-
# Copyright (c) Microsoft Corporation.
|
3
|
-
# Licensed under the MIT License.
|
4
|
-
# ------------------------------------
|
5
|
-
import os
|
6
|
-
import json
|
7
|
-
import logging
|
8
|
-
from msal_extensions.osx import Keychain, KeychainError
|
9
|
-
from .._constants import VSCODE_CREDENTIALS_SECTION
|
10
|
-
|
11
|
-
_LOGGER = logging.getLogger(__name__)
|
12
|
-
|
13
|
-
|
14
|
-
def get_user_settings():
|
15
|
-
try:
|
16
|
-
path = os.path.join(os.environ["HOME"], "Library", "Application Support", "Code", "User", "settings.json")
|
17
|
-
with open(path, encoding="utf-8") as file:
|
18
|
-
return json.load(file)
|
19
|
-
except Exception as ex: # pylint:disable=broad-except
|
20
|
-
_LOGGER.debug('Exception reading VS Code user settings: "%s"', ex, exc_info=_LOGGER.isEnabledFor(logging.DEBUG))
|
21
|
-
return {}
|
22
|
-
|
23
|
-
|
24
|
-
def get_refresh_token(cloud_name):
|
25
|
-
try:
|
26
|
-
key_chain = Keychain()
|
27
|
-
return key_chain.get_generic_password(VSCODE_CREDENTIALS_SECTION, cloud_name)
|
28
|
-
except KeychainError:
|
29
|
-
return None
|
30
|
-
except Exception as ex: # pylint:disable=broad-except
|
31
|
-
_LOGGER.debug(
|
32
|
-
'Exception retrieving VS Code credentials: "%s"', ex, exc_info=_LOGGER.isEnabledFor(logging.DEBUG)
|
33
|
-
)
|
34
|
-
return None
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# ------------------------------------
|
2
|
-
# Copyright (c) Microsoft Corporation.
|
3
|
-
# Licensed under the MIT License.
|
4
|
-
# ------------------------------------
|
5
|
-
import os
|
6
|
-
import json
|
7
|
-
import logging
|
8
|
-
import ctypes as ct
|
9
|
-
from .._constants import VSCODE_CREDENTIALS_SECTION
|
10
|
-
|
11
|
-
try:
|
12
|
-
import ctypes.wintypes as wt
|
13
|
-
except (IOError, ValueError):
|
14
|
-
pass
|
15
|
-
|
16
|
-
_LOGGER = logging.getLogger(__name__)
|
17
|
-
|
18
|
-
SUPPORTED_CREDKEYS = set(("Type", "TargetName", "Persist", "UserName", "Comment", "CredentialBlob"))
|
19
|
-
|
20
|
-
_PBYTE = ct.POINTER(ct.c_byte)
|
21
|
-
|
22
|
-
|
23
|
-
class _CREDENTIAL(ct.Structure):
|
24
|
-
_fields_ = [
|
25
|
-
("Flags", wt.DWORD),
|
26
|
-
("Type", wt.DWORD),
|
27
|
-
("TargetName", ct.c_wchar_p),
|
28
|
-
("Comment", ct.c_wchar_p),
|
29
|
-
("LastWritten", wt.FILETIME),
|
30
|
-
("CredentialBlobSize", wt.DWORD),
|
31
|
-
("CredentialBlob", _PBYTE),
|
32
|
-
("Persist", wt.DWORD),
|
33
|
-
("AttributeCount", wt.DWORD),
|
34
|
-
("Attributes", ct.c_void_p),
|
35
|
-
("TargetAlias", ct.c_wchar_p),
|
36
|
-
("UserName", ct.c_wchar_p),
|
37
|
-
]
|
38
|
-
|
39
|
-
|
40
|
-
_PCREDENTIAL = ct.POINTER(_CREDENTIAL)
|
41
|
-
|
42
|
-
_advapi = ct.WinDLL("advapi32") # type: ignore
|
43
|
-
_advapi.CredReadW.argtypes = [wt.LPCWSTR, wt.DWORD, wt.DWORD, ct.POINTER(_PCREDENTIAL)]
|
44
|
-
_advapi.CredReadW.restype = wt.BOOL
|
45
|
-
_advapi.CredFree.argtypes = [_PCREDENTIAL]
|
46
|
-
|
47
|
-
|
48
|
-
def _read_credential(service_name, account_name):
|
49
|
-
target = "{}/{}".format(service_name, account_name)
|
50
|
-
cred_ptr = _PCREDENTIAL()
|
51
|
-
if _advapi.CredReadW(target, 1, 0, ct.byref(cred_ptr)):
|
52
|
-
cred_blob = cred_ptr.contents.CredentialBlob
|
53
|
-
cred_blob_size = cred_ptr.contents.CredentialBlobSize
|
54
|
-
cred = "".join(map(chr, cred_blob[:cred_blob_size]))
|
55
|
-
_advapi.CredFree(cred_ptr)
|
56
|
-
return cred
|
57
|
-
return None
|
58
|
-
|
59
|
-
|
60
|
-
def get_user_settings():
|
61
|
-
try:
|
62
|
-
path = os.path.join(os.environ["APPDATA"], "Code", "User", "settings.json")
|
63
|
-
with open(path, encoding="utf-8") as file:
|
64
|
-
return json.load(file)
|
65
|
-
except Exception as ex: # pylint:disable=broad-except
|
66
|
-
_LOGGER.debug('Exception reading VS Code user settings: "%s"', ex, exc_info=_LOGGER.isEnabledFor(logging.DEBUG))
|
67
|
-
return {}
|
68
|
-
|
69
|
-
|
70
|
-
def get_refresh_token(cloud_name):
|
71
|
-
try:
|
72
|
-
return _read_credential(VSCODE_CREDENTIALS_SECTION, cloud_name)
|
73
|
-
except Exception as ex: # pylint: disable=broad-except
|
74
|
-
_LOGGER.debug(
|
75
|
-
'Exception retrieving VS Code credentials: "%s"', ex, exc_info=_LOGGER.isEnabledFor(logging.DEBUG)
|
76
|
-
)
|
77
|
-
return None
|
File without changes
|
File without changes
|