winrt-Windows.Security.Authentication.Web 2.0.1__tar.gz → 2.2.0__tar.gz
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.
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/PKG-INFO +5 -5
- winrt_windows_security_authentication_web-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/py.Windows.Security.Authentication.Web.cpp +167 -96
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/pyproject.toml +3 -2
- winrt_windows_security_authentication_web-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/requirements.txt +2 -2
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/winrt/_winrt_windows_security_authentication_web.pyi +12 -13
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/winrt/windows/security/authentication/web/__init__.py +2 -2
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/winrt_Windows.Security.Authentication.Web.egg-info/PKG-INFO +5 -5
- winrt_windows_security_authentication_web-2.2.0/winrt_Windows.Security.Authentication.Web.egg-info/requires.txt +5 -0
- winrt_windows_security_authentication_web-2.0.1/all-requirements.txt +0 -4
- winrt_windows_security_authentication_web-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_security_authentication_web-2.0.1/winrt_Windows.Security.Authentication.Web.egg-info/requires.txt +0 -5
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/README.md +0 -0
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/setup.cfg +0 -0
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/setup.py +0 -0
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/winrt/windows/security/authentication/web/py.typed +0 -0
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/winrt_Windows.Security.Authentication.Web.egg-info/SOURCES.txt +0 -0
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/winrt_Windows.Security.Authentication.Web.egg-info/dependency_links.txt +0 -0
- {winrt_windows_security_authentication_web-2.0.1 → winrt_windows_security_authentication_web-2.2.0}/winrt_Windows.Security.Authentication.Web.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Authentication.Web
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Security.Authentication.Web.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Security::Authentication::Web
|
|
7
6
|
{
|
|
8
7
|
// ----- WebAuthenticationBroker class --------------------
|
|
@@ -20,14 +19,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
20
19
|
|
|
21
20
|
if (arg_count == 1)
|
|
22
21
|
{
|
|
23
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAndContinue", 1))
|
|
24
|
-
{
|
|
25
|
-
py::set_arg_count_version_error(1);
|
|
26
|
-
return nullptr;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
22
|
try
|
|
30
23
|
{
|
|
24
|
+
static std::optional<bool> is_overload_present{};
|
|
25
|
+
|
|
26
|
+
if (!is_overload_present.has_value())
|
|
27
|
+
{
|
|
28
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAndContinue", 1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (!is_overload_present.value())
|
|
32
|
+
{
|
|
33
|
+
py::set_arg_count_version_error(1);
|
|
34
|
+
return nullptr;
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
32
38
|
|
|
33
39
|
winrt::Windows::Security::Authentication::Web::WebAuthenticationBroker::AuthenticateAndContinue(param0);
|
|
@@ -41,14 +47,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
41
47
|
}
|
|
42
48
|
else if (arg_count == 2)
|
|
43
49
|
{
|
|
44
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAndContinue", 2))
|
|
45
|
-
{
|
|
46
|
-
py::set_arg_count_version_error(2);
|
|
47
|
-
return nullptr;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
50
|
try
|
|
51
51
|
{
|
|
52
|
+
static std::optional<bool> is_overload_present{};
|
|
53
|
+
|
|
54
|
+
if (!is_overload_present.has_value())
|
|
55
|
+
{
|
|
56
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAndContinue", 2);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (!is_overload_present.value())
|
|
60
|
+
{
|
|
61
|
+
py::set_arg_count_version_error(2);
|
|
62
|
+
return nullptr;
|
|
63
|
+
}
|
|
64
|
+
|
|
52
65
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
53
66
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 1);
|
|
54
67
|
|
|
@@ -63,14 +76,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
63
76
|
}
|
|
64
77
|
else if (arg_count == 4)
|
|
65
78
|
{
|
|
66
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAndContinue", 4))
|
|
67
|
-
{
|
|
68
|
-
py::set_arg_count_version_error(4);
|
|
69
|
-
return nullptr;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
79
|
try
|
|
73
80
|
{
|
|
81
|
+
static std::optional<bool> is_overload_present{};
|
|
82
|
+
|
|
83
|
+
if (!is_overload_present.has_value())
|
|
84
|
+
{
|
|
85
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAndContinue", 4);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (!is_overload_present.value())
|
|
89
|
+
{
|
|
90
|
+
py::set_arg_count_version_error(4);
|
|
91
|
+
return nullptr;
|
|
92
|
+
}
|
|
93
|
+
|
|
74
94
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
75
95
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 1);
|
|
76
96
|
auto param2 = py::convert_to<winrt::Windows::Foundation::Collections::ValueSet>(args, 2);
|
|
@@ -98,14 +118,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
98
118
|
|
|
99
119
|
if (arg_count == 2)
|
|
100
120
|
{
|
|
101
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAsync", 2))
|
|
102
|
-
{
|
|
103
|
-
py::set_arg_count_version_error(2);
|
|
104
|
-
return nullptr;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
121
|
try
|
|
108
122
|
{
|
|
123
|
+
static std::optional<bool> is_overload_present{};
|
|
124
|
+
|
|
125
|
+
if (!is_overload_present.has_value())
|
|
126
|
+
{
|
|
127
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAsync", 2);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (!is_overload_present.value())
|
|
131
|
+
{
|
|
132
|
+
py::set_arg_count_version_error(2);
|
|
133
|
+
return nullptr;
|
|
134
|
+
}
|
|
135
|
+
|
|
109
136
|
auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Web::WebAuthenticationOptions>(args, 0);
|
|
110
137
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 1);
|
|
111
138
|
|
|
@@ -119,14 +146,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
119
146
|
}
|
|
120
147
|
else if (arg_count == 3)
|
|
121
148
|
{
|
|
122
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAsync", 3))
|
|
123
|
-
{
|
|
124
|
-
py::set_arg_count_version_error(3);
|
|
125
|
-
return nullptr;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
149
|
try
|
|
129
150
|
{
|
|
151
|
+
static std::optional<bool> is_overload_present{};
|
|
152
|
+
|
|
153
|
+
if (!is_overload_present.has_value())
|
|
154
|
+
{
|
|
155
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateAsync", 3);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (!is_overload_present.value())
|
|
159
|
+
{
|
|
160
|
+
py::set_arg_count_version_error(3);
|
|
161
|
+
return nullptr;
|
|
162
|
+
}
|
|
163
|
+
|
|
130
164
|
auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Web::WebAuthenticationOptions>(args, 0);
|
|
131
165
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 1);
|
|
132
166
|
auto param2 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 2);
|
|
@@ -152,14 +186,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
152
186
|
|
|
153
187
|
if (arg_count == 1)
|
|
154
188
|
{
|
|
155
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateSilentlyAsync", 1))
|
|
156
|
-
{
|
|
157
|
-
py::set_arg_count_version_error(1);
|
|
158
|
-
return nullptr;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
189
|
try
|
|
162
190
|
{
|
|
191
|
+
static std::optional<bool> is_overload_present{};
|
|
192
|
+
|
|
193
|
+
if (!is_overload_present.has_value())
|
|
194
|
+
{
|
|
195
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateSilentlyAsync", 1);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (!is_overload_present.value())
|
|
199
|
+
{
|
|
200
|
+
py::set_arg_count_version_error(1);
|
|
201
|
+
return nullptr;
|
|
202
|
+
}
|
|
203
|
+
|
|
163
204
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
164
205
|
|
|
165
206
|
return py::convert(winrt::Windows::Security::Authentication::Web::WebAuthenticationBroker::AuthenticateSilentlyAsync(param0));
|
|
@@ -172,14 +213,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
172
213
|
}
|
|
173
214
|
else if (arg_count == 2)
|
|
174
215
|
{
|
|
175
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateSilentlyAsync", 2))
|
|
176
|
-
{
|
|
177
|
-
py::set_arg_count_version_error(2);
|
|
178
|
-
return nullptr;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
216
|
try
|
|
182
217
|
{
|
|
218
|
+
static std::optional<bool> is_overload_present{};
|
|
219
|
+
|
|
220
|
+
if (!is_overload_present.has_value())
|
|
221
|
+
{
|
|
222
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"AuthenticateSilentlyAsync", 2);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (!is_overload_present.value())
|
|
226
|
+
{
|
|
227
|
+
py::set_arg_count_version_error(2);
|
|
228
|
+
return nullptr;
|
|
229
|
+
}
|
|
230
|
+
|
|
183
231
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
184
232
|
auto param1 = py::convert_to<winrt::Windows::Security::Authentication::Web::WebAuthenticationOptions>(args, 1);
|
|
185
233
|
|
|
@@ -204,14 +252,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
204
252
|
|
|
205
253
|
if (arg_count == 0)
|
|
206
254
|
{
|
|
207
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"GetCurrentApplicationCallbackUri", 0))
|
|
208
|
-
{
|
|
209
|
-
py::set_arg_count_version_error(0);
|
|
210
|
-
return nullptr;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
255
|
try
|
|
214
256
|
{
|
|
257
|
+
static std::optional<bool> is_overload_present{};
|
|
258
|
+
|
|
259
|
+
if (!is_overload_present.has_value())
|
|
260
|
+
{
|
|
261
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Web.WebAuthenticationBroker", L"GetCurrentApplicationCallbackUri", 0);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (!is_overload_present.value())
|
|
265
|
+
{
|
|
266
|
+
py::set_arg_count_version_error(0);
|
|
267
|
+
return nullptr;
|
|
268
|
+
}
|
|
269
|
+
|
|
215
270
|
return py::convert(winrt::Windows::Security::Authentication::Web::WebAuthenticationBroker::GetCurrentApplicationCallbackUri());
|
|
216
271
|
}
|
|
217
272
|
catch (...)
|
|
@@ -235,22 +290,19 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
235
290
|
{ }
|
|
236
291
|
};
|
|
237
292
|
|
|
238
|
-
static PyType_Slot _type_slots_WebAuthenticationBroker[] =
|
|
239
|
-
{
|
|
293
|
+
static PyType_Slot _type_slots_WebAuthenticationBroker[] = {
|
|
240
294
|
{ Py_tp_new, reinterpret_cast<void*>(_new_WebAuthenticationBroker) },
|
|
241
295
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_WebAuthenticationBroker) },
|
|
242
296
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_WebAuthenticationBroker) },
|
|
243
|
-
{ }
|
|
297
|
+
{ }
|
|
244
298
|
};
|
|
245
299
|
|
|
246
|
-
static PyType_Spec type_spec_WebAuthenticationBroker =
|
|
247
|
-
{
|
|
300
|
+
static PyType_Spec type_spec_WebAuthenticationBroker = {
|
|
248
301
|
"winrt._winrt_windows_security_authentication_web.WebAuthenticationBroker",
|
|
249
302
|
0,
|
|
250
303
|
0,
|
|
251
304
|
Py_TPFLAGS_DEFAULT,
|
|
252
|
-
_type_slots_WebAuthenticationBroker
|
|
253
|
-
};
|
|
305
|
+
_type_slots_WebAuthenticationBroker};
|
|
254
306
|
|
|
255
307
|
static PyGetSetDef getset_WebAuthenticationBroker_Static[] = {
|
|
256
308
|
{ }
|
|
@@ -300,14 +352,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
300
352
|
|
|
301
353
|
static PyObject* WebAuthenticationResult_get_ResponseData(py::wrapper::Windows::Security::Authentication::Web::WebAuthenticationResult* self, void* /*unused*/) noexcept
|
|
302
354
|
{
|
|
303
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Web.WebAuthenticationResult", L"ResponseData"))
|
|
304
|
-
{
|
|
305
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
306
|
-
return nullptr;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
355
|
try
|
|
310
356
|
{
|
|
357
|
+
static std::optional<bool> is_property_present{};
|
|
358
|
+
|
|
359
|
+
if (!is_property_present.has_value())
|
|
360
|
+
{
|
|
361
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Web.WebAuthenticationResult", L"ResponseData");
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (!is_property_present.value())
|
|
365
|
+
{
|
|
366
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
367
|
+
return nullptr;
|
|
368
|
+
}
|
|
369
|
+
|
|
311
370
|
return py::convert(self->obj.ResponseData());
|
|
312
371
|
}
|
|
313
372
|
catch (...)
|
|
@@ -319,14 +378,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
319
378
|
|
|
320
379
|
static PyObject* WebAuthenticationResult_get_ResponseErrorDetail(py::wrapper::Windows::Security::Authentication::Web::WebAuthenticationResult* self, void* /*unused*/) noexcept
|
|
321
380
|
{
|
|
322
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Web.WebAuthenticationResult", L"ResponseErrorDetail"))
|
|
323
|
-
{
|
|
324
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
325
|
-
return nullptr;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
381
|
try
|
|
329
382
|
{
|
|
383
|
+
static std::optional<bool> is_property_present{};
|
|
384
|
+
|
|
385
|
+
if (!is_property_present.has_value())
|
|
386
|
+
{
|
|
387
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Web.WebAuthenticationResult", L"ResponseErrorDetail");
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
if (!is_property_present.value())
|
|
391
|
+
{
|
|
392
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
393
|
+
return nullptr;
|
|
394
|
+
}
|
|
395
|
+
|
|
330
396
|
return py::convert(self->obj.ResponseErrorDetail());
|
|
331
397
|
}
|
|
332
398
|
catch (...)
|
|
@@ -338,14 +404,21 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
338
404
|
|
|
339
405
|
static PyObject* WebAuthenticationResult_get_ResponseStatus(py::wrapper::Windows::Security::Authentication::Web::WebAuthenticationResult* self, void* /*unused*/) noexcept
|
|
340
406
|
{
|
|
341
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Web.WebAuthenticationResult", L"ResponseStatus"))
|
|
342
|
-
{
|
|
343
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
344
|
-
return nullptr;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
407
|
try
|
|
348
408
|
{
|
|
409
|
+
static std::optional<bool> is_property_present{};
|
|
410
|
+
|
|
411
|
+
if (!is_property_present.has_value())
|
|
412
|
+
{
|
|
413
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Web.WebAuthenticationResult", L"ResponseStatus");
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (!is_property_present.value())
|
|
417
|
+
{
|
|
418
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
419
|
+
return nullptr;
|
|
420
|
+
}
|
|
421
|
+
|
|
349
422
|
return py::convert(self->obj.ResponseStatus());
|
|
350
423
|
}
|
|
351
424
|
catch (...)
|
|
@@ -392,39 +465,35 @@ namespace py::cpp::Windows::Security::Authentication::Web
|
|
|
392
465
|
{ }
|
|
393
466
|
};
|
|
394
467
|
|
|
395
|
-
static PyType_Slot _type_slots_WebAuthenticationResult[] =
|
|
396
|
-
{
|
|
468
|
+
static PyType_Slot _type_slots_WebAuthenticationResult[] = {
|
|
397
469
|
{ Py_tp_new, reinterpret_cast<void*>(_new_WebAuthenticationResult) },
|
|
398
470
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_WebAuthenticationResult) },
|
|
399
471
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_WebAuthenticationResult) },
|
|
400
472
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_WebAuthenticationResult) },
|
|
401
|
-
{ }
|
|
473
|
+
{ }
|
|
402
474
|
};
|
|
403
475
|
|
|
404
|
-
static PyType_Spec type_spec_WebAuthenticationResult =
|
|
405
|
-
{
|
|
476
|
+
static PyType_Spec type_spec_WebAuthenticationResult = {
|
|
406
477
|
"winrt._winrt_windows_security_authentication_web.WebAuthenticationResult",
|
|
407
478
|
sizeof(py::wrapper::Windows::Security::Authentication::Web::WebAuthenticationResult),
|
|
408
479
|
0,
|
|
409
480
|
Py_TPFLAGS_DEFAULT,
|
|
410
|
-
_type_slots_WebAuthenticationResult
|
|
411
|
-
};
|
|
481
|
+
_type_slots_WebAuthenticationResult};
|
|
412
482
|
|
|
413
483
|
// ----- Windows.Security.Authentication.Web Initialization --------------------
|
|
414
|
-
PyDoc_STRVAR(module_doc, "Windows::Security::Authentication::Web");
|
|
415
|
-
|
|
416
484
|
|
|
417
|
-
|
|
418
|
-
= {PyModuleDef_HEAD_INIT,
|
|
419
|
-
"_winrt_windows_security_authentication_web",
|
|
420
|
-
module_doc,
|
|
421
|
-
0,
|
|
422
|
-
nullptr,
|
|
423
|
-
nullptr,
|
|
424
|
-
nullptr,
|
|
425
|
-
nullptr,
|
|
426
|
-
nullptr};
|
|
485
|
+
PyDoc_STRVAR(module_doc, "Windows.Security.Authentication.Web");
|
|
427
486
|
|
|
487
|
+
static PyModuleDef module_def = {
|
|
488
|
+
PyModuleDef_HEAD_INIT,
|
|
489
|
+
"_winrt_windows_security_authentication_web",
|
|
490
|
+
module_doc,
|
|
491
|
+
0,
|
|
492
|
+
nullptr,
|
|
493
|
+
nullptr,
|
|
494
|
+
nullptr,
|
|
495
|
+
nullptr,
|
|
496
|
+
nullptr};
|
|
428
497
|
} // py::cpp::Windows::Security::Authentication::Web
|
|
429
498
|
|
|
430
499
|
PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_web(void) noexcept
|
|
@@ -462,12 +531,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_web(void) noexcept
|
|
|
462
531
|
return nullptr;
|
|
463
532
|
}
|
|
464
533
|
|
|
465
|
-
|
|
534
|
+
py::pytype_handle WebAuthenticationBroker_type{py::register_python_type(module.get(), &type_spec_WebAuthenticationBroker, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_WebAuthenticationBroker_Static.get()))};
|
|
535
|
+
if (!WebAuthenticationBroker_type)
|
|
466
536
|
{
|
|
467
537
|
return nullptr;
|
|
468
538
|
}
|
|
469
539
|
|
|
470
|
-
|
|
540
|
+
py::pytype_handle WebAuthenticationResult_type{py::register_python_type(module.get(), &type_spec_WebAuthenticationResult, object_bases.get(), nullptr)};
|
|
541
|
+
if (!WebAuthenticationResult_type)
|
|
471
542
|
{
|
|
472
543
|
return nullptr;
|
|
473
544
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,8 +9,8 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
14
|
|
|
15
15
|
from winrt.windows.security.authentication.web import TokenBindingKeyType, WebAuthenticationOptions, WebAuthenticationStatus
|
|
16
16
|
|
|
@@ -19,25 +19,24 @@ Self = typing.TypeVar('Self')
|
|
|
19
19
|
@typing.final
|
|
20
20
|
class WebAuthenticationBroker_Static(type):
|
|
21
21
|
@typing.overload
|
|
22
|
-
def authenticate_and_continue(cls, request_uri: typing.Optional[
|
|
22
|
+
def authenticate_and_continue(cls, request_uri: typing.Optional[windows_foundation.Uri], /) -> None: ...
|
|
23
23
|
@typing.overload
|
|
24
|
-
def authenticate_and_continue(cls, request_uri: typing.Optional[
|
|
24
|
+
def authenticate_and_continue(cls, request_uri: typing.Optional[windows_foundation.Uri], callback_uri: typing.Optional[windows_foundation.Uri], /) -> None: ...
|
|
25
25
|
@typing.overload
|
|
26
|
-
def authenticate_and_continue(cls, request_uri: typing.Optional[
|
|
26
|
+
def authenticate_and_continue(cls, request_uri: typing.Optional[windows_foundation.Uri], callback_uri: typing.Optional[windows_foundation.Uri], continuation_data: typing.Optional[windows_foundation_collections.ValueSet], options: WebAuthenticationOptions, /) -> None: ...
|
|
27
27
|
@typing.overload
|
|
28
|
-
def authenticate_async(cls, options: WebAuthenticationOptions, request_uri: typing.Optional[
|
|
28
|
+
def authenticate_async(cls, options: WebAuthenticationOptions, request_uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperation[WebAuthenticationResult]: ...
|
|
29
29
|
@typing.overload
|
|
30
|
-
def authenticate_async(cls, options: WebAuthenticationOptions, request_uri: typing.Optional[
|
|
30
|
+
def authenticate_async(cls, options: WebAuthenticationOptions, request_uri: typing.Optional[windows_foundation.Uri], callback_uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperation[WebAuthenticationResult]: ...
|
|
31
31
|
@typing.overload
|
|
32
|
-
def authenticate_silently_async(cls, request_uri: typing.Optional[
|
|
32
|
+
def authenticate_silently_async(cls, request_uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperation[WebAuthenticationResult]: ...
|
|
33
33
|
@typing.overload
|
|
34
|
-
def authenticate_silently_async(cls, request_uri: typing.Optional[
|
|
35
|
-
def get_current_application_callback_uri(cls) -> typing.Optional[
|
|
34
|
+
def authenticate_silently_async(cls, request_uri: typing.Optional[windows_foundation.Uri], options: WebAuthenticationOptions, /) -> windows_foundation.IAsyncOperation[WebAuthenticationResult]: ...
|
|
35
|
+
def get_current_application_callback_uri(cls) -> typing.Optional[windows_foundation.Uri]: ...
|
|
36
36
|
|
|
37
37
|
@typing.final
|
|
38
38
|
class WebAuthenticationBroker(winrt.system.Object, metaclass=WebAuthenticationBroker_Static):
|
|
39
|
-
|
|
40
|
-
def _from(obj: winrt.system.Object, /) -> WebAuthenticationBroker: ...
|
|
39
|
+
pass
|
|
41
40
|
|
|
42
41
|
@typing.final
|
|
43
42
|
class WebAuthenticationResult(winrt.system.Object):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ class TokenBindingKeyType(enum.IntEnum):
|
|
|
19
19
|
ANY_EXISTING = 2
|
|
20
20
|
|
|
21
21
|
class WebAuthenticationOptions(enum.IntFlag):
|
|
22
|
-
NONE =
|
|
22
|
+
NONE = 0x0
|
|
23
23
|
SILENT_MODE = 0x1
|
|
24
24
|
USE_TITLE = 0x2
|
|
25
25
|
USE_HTTP_POST = 0x4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Authentication.Web
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|