winrt-Windows.Security.Authentication.Identity.Core 2.3.0__tar.gz → 3.1.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_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/PKG-INFO +7 -7
- winrt_windows_security_authentication_identity_core-3.1.0/all-requirements.txt +4 -0
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/py.Windows.Security.Authentication.Identity.Core.cpp +224 -99
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/pyproject.toml +4 -4
- winrt_windows_security_authentication_identity_core-3.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/requirements.txt +2 -2
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/setup.py +1 -1
- winrt_windows_security_authentication_identity_core-3.1.0/winrt/_winrt_windows_security_authentication_identity_core.pyi +107 -0
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/winrt/windows/security/authentication/identity/core/__init__.py +9 -8
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/PKG-INFO +7 -7
- winrt_windows_security_authentication_identity_core-3.1.0/winrt_Windows.Security.Authentication.Identity.Core.egg-info/requires.txt +5 -0
- winrt_windows_security_authentication_identity_core-2.3.0/all-requirements.txt +0 -4
- winrt_windows_security_authentication_identity_core-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_security_authentication_identity_core-2.3.0/winrt/_winrt_windows_security_authentication_identity_core.pyi +0 -94
- winrt_windows_security_authentication_identity_core-2.3.0/winrt_Windows.Security.Authentication.Identity.Core.egg-info/requires.txt +0 -5
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/README.md +0 -0
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/setup.cfg +0 -0
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/winrt/windows/security/authentication/identity/core/py.typed +0 -0
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/SOURCES.txt +0 -0
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/dependency_links.txt +0 -0
- {winrt_windows_security_authentication_identity_core-2.3.0 → winrt_windows_security_authentication_identity_core-3.1.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.Security.Authentication.Identity.Core
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Security.Authentication.Identity.Core.h"
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
23
23
|
|
|
24
24
|
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_AddDeviceAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
25
25
|
{
|
|
26
|
-
auto arg_count =
|
|
26
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
27
27
|
|
|
28
28
|
if (arg_count == 3)
|
|
29
29
|
{
|
|
@@ -46,7 +46,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
46
46
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
47
47
|
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
48
48
|
|
|
49
|
-
return py::convert(
|
|
49
|
+
return py::convert([&]()
|
|
50
|
+
{
|
|
51
|
+
auto _gil = release_gil();
|
|
52
|
+
return self->obj.AddDeviceAsync(param0, param1, param2);
|
|
53
|
+
}());
|
|
50
54
|
}
|
|
51
55
|
catch (...)
|
|
52
56
|
{
|
|
@@ -63,9 +67,9 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
63
67
|
|
|
64
68
|
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_ApproveSessionAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
65
69
|
{
|
|
66
|
-
auto arg_count =
|
|
70
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
67
71
|
|
|
68
|
-
if (arg_count ==
|
|
72
|
+
if (arg_count == 4)
|
|
69
73
|
{
|
|
70
74
|
try
|
|
71
75
|
{
|
|
@@ -73,19 +77,25 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
73
77
|
|
|
74
78
|
if (!is_overload_present.has_value())
|
|
75
79
|
{
|
|
76
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync",
|
|
80
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 4);
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
if (!is_overload_present.value())
|
|
80
84
|
{
|
|
81
|
-
py::set_arg_count_version_error(
|
|
85
|
+
py::set_arg_count_version_error(4);
|
|
82
86
|
return nullptr;
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionAuthenticationStatus>(args, 0);
|
|
86
|
-
auto param1 = py::convert_to<winrt::
|
|
90
|
+
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
91
|
+
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
92
|
+
auto param3 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType>(args, 3);
|
|
87
93
|
|
|
88
|
-
return py::convert(
|
|
94
|
+
return py::convert([&]()
|
|
95
|
+
{
|
|
96
|
+
auto _gil = release_gil();
|
|
97
|
+
return self->obj.ApproveSessionAsync(param0, param1, param2, param3);
|
|
98
|
+
}());
|
|
89
99
|
}
|
|
90
100
|
catch (...)
|
|
91
101
|
{
|
|
@@ -93,7 +103,18 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
93
103
|
return nullptr;
|
|
94
104
|
}
|
|
95
105
|
}
|
|
96
|
-
else
|
|
106
|
+
else
|
|
107
|
+
{
|
|
108
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
109
|
+
return nullptr;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_ApproveSessionUsingAuthSessionInfoAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
114
|
+
{
|
|
115
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
116
|
+
|
|
117
|
+
if (arg_count == 2)
|
|
97
118
|
{
|
|
98
119
|
try
|
|
99
120
|
{
|
|
@@ -101,21 +122,23 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
101
122
|
|
|
102
123
|
if (!is_overload_present.has_value())
|
|
103
124
|
{
|
|
104
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync",
|
|
125
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 2);
|
|
105
126
|
}
|
|
106
127
|
|
|
107
128
|
if (!is_overload_present.value())
|
|
108
129
|
{
|
|
109
|
-
py::set_arg_count_version_error(
|
|
130
|
+
py::set_arg_count_version_error(2);
|
|
110
131
|
return nullptr;
|
|
111
132
|
}
|
|
112
133
|
|
|
113
134
|
auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionAuthenticationStatus>(args, 0);
|
|
114
|
-
auto param1 = py::convert_to<winrt::
|
|
115
|
-
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
116
|
-
auto param3 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType>(args, 3);
|
|
135
|
+
auto param1 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo>(args, 1);
|
|
117
136
|
|
|
118
|
-
return py::convert(
|
|
137
|
+
return py::convert([&]()
|
|
138
|
+
{
|
|
139
|
+
auto _gil = release_gil();
|
|
140
|
+
return self->obj.ApproveSessionAsync(param0, param1);
|
|
141
|
+
}());
|
|
119
142
|
}
|
|
120
143
|
catch (...)
|
|
121
144
|
{
|
|
@@ -132,9 +155,9 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
132
155
|
|
|
133
156
|
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_DenySessionAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
134
157
|
{
|
|
135
|
-
auto arg_count =
|
|
158
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
136
159
|
|
|
137
|
-
if (arg_count ==
|
|
160
|
+
if (arg_count == 3)
|
|
138
161
|
{
|
|
139
162
|
try
|
|
140
163
|
{
|
|
@@ -142,18 +165,24 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
142
165
|
|
|
143
166
|
if (!is_overload_present.has_value())
|
|
144
167
|
{
|
|
145
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync",
|
|
168
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 3);
|
|
146
169
|
}
|
|
147
170
|
|
|
148
171
|
if (!is_overload_present.value())
|
|
149
172
|
{
|
|
150
|
-
py::set_arg_count_version_error(
|
|
173
|
+
py::set_arg_count_version_error(3);
|
|
151
174
|
return nullptr;
|
|
152
175
|
}
|
|
153
176
|
|
|
154
|
-
auto param0 = py::convert_to<winrt::
|
|
177
|
+
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
178
|
+
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
179
|
+
auto param2 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType>(args, 2);
|
|
155
180
|
|
|
156
|
-
return py::convert(
|
|
181
|
+
return py::convert([&]()
|
|
182
|
+
{
|
|
183
|
+
auto _gil = release_gil();
|
|
184
|
+
return self->obj.DenySessionAsync(param0, param1, param2);
|
|
185
|
+
}());
|
|
157
186
|
}
|
|
158
187
|
catch (...)
|
|
159
188
|
{
|
|
@@ -161,7 +190,18 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
161
190
|
return nullptr;
|
|
162
191
|
}
|
|
163
192
|
}
|
|
164
|
-
else
|
|
193
|
+
else
|
|
194
|
+
{
|
|
195
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
196
|
+
return nullptr;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_DenySessionUsingAuthSessionInfoAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
201
|
+
{
|
|
202
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
203
|
+
|
|
204
|
+
if (arg_count == 1)
|
|
165
205
|
{
|
|
166
206
|
try
|
|
167
207
|
{
|
|
@@ -169,20 +209,22 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
169
209
|
|
|
170
210
|
if (!is_overload_present.has_value())
|
|
171
211
|
{
|
|
172
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync",
|
|
212
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 1);
|
|
173
213
|
}
|
|
174
214
|
|
|
175
215
|
if (!is_overload_present.value())
|
|
176
216
|
{
|
|
177
|
-
py::set_arg_count_version_error(
|
|
217
|
+
py::set_arg_count_version_error(1);
|
|
178
218
|
return nullptr;
|
|
179
219
|
}
|
|
180
220
|
|
|
181
|
-
auto param0 = py::convert_to<winrt::
|
|
182
|
-
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
183
|
-
auto param2 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType>(args, 2);
|
|
221
|
+
auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo>(args, 0);
|
|
184
222
|
|
|
185
|
-
return py::convert(
|
|
223
|
+
return py::convert([&]()
|
|
224
|
+
{
|
|
225
|
+
auto _gil = release_gil();
|
|
226
|
+
return self->obj.DenySessionAsync(param0);
|
|
227
|
+
}());
|
|
186
228
|
}
|
|
187
229
|
catch (...)
|
|
188
230
|
{
|
|
@@ -199,7 +241,7 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
199
241
|
|
|
200
242
|
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_GetOneTimePassCodeAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
201
243
|
{
|
|
202
|
-
auto arg_count =
|
|
244
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
203
245
|
|
|
204
246
|
if (arg_count == 2)
|
|
205
247
|
{
|
|
@@ -221,7 +263,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
221
263
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
222
264
|
auto param1 = py::convert_to<uint32_t>(args, 1);
|
|
223
265
|
|
|
224
|
-
return py::convert(
|
|
266
|
+
return py::convert([&]()
|
|
267
|
+
{
|
|
268
|
+
auto _gil = release_gil();
|
|
269
|
+
return self->obj.GetOneTimePassCodeAsync(param0, param1);
|
|
270
|
+
}());
|
|
225
271
|
}
|
|
226
272
|
catch (...)
|
|
227
273
|
{
|
|
@@ -238,7 +284,7 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
238
284
|
|
|
239
285
|
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_GetSessionsAndUnregisteredAccountsAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
240
286
|
{
|
|
241
|
-
auto arg_count =
|
|
287
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
242
288
|
|
|
243
289
|
if (arg_count == 1)
|
|
244
290
|
{
|
|
@@ -259,7 +305,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
259
305
|
|
|
260
306
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
261
307
|
|
|
262
|
-
return py::convert(
|
|
308
|
+
return py::convert([&]()
|
|
309
|
+
{
|
|
310
|
+
auto _gil = release_gil();
|
|
311
|
+
return self->obj.GetSessionsAndUnregisteredAccountsAsync(param0);
|
|
312
|
+
}());
|
|
263
313
|
}
|
|
264
314
|
catch (...)
|
|
265
315
|
{
|
|
@@ -276,7 +326,7 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
276
326
|
|
|
277
327
|
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_GetSessionsAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
278
328
|
{
|
|
279
|
-
auto arg_count =
|
|
329
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
280
330
|
|
|
281
331
|
if (arg_count == 1)
|
|
282
332
|
{
|
|
@@ -297,7 +347,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
297
347
|
|
|
298
348
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
299
349
|
|
|
300
|
-
return py::convert(
|
|
350
|
+
return py::convert([&]()
|
|
351
|
+
{
|
|
352
|
+
auto _gil = release_gil();
|
|
353
|
+
return self->obj.GetSessionsAsync(param0);
|
|
354
|
+
}());
|
|
301
355
|
}
|
|
302
356
|
catch (...)
|
|
303
357
|
{
|
|
@@ -314,7 +368,7 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
314
368
|
|
|
315
369
|
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_RemoveDeviceAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
316
370
|
{
|
|
317
|
-
auto arg_count =
|
|
371
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
318
372
|
|
|
319
373
|
if (arg_count == 1)
|
|
320
374
|
{
|
|
@@ -335,7 +389,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
335
389
|
|
|
336
390
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
337
391
|
|
|
338
|
-
return py::convert(
|
|
392
|
+
return py::convert([&]()
|
|
393
|
+
{
|
|
394
|
+
auto _gil = release_gil();
|
|
395
|
+
return self->obj.RemoveDeviceAsync(param0);
|
|
396
|
+
}());
|
|
339
397
|
}
|
|
340
398
|
catch (...)
|
|
341
399
|
{
|
|
@@ -352,7 +410,7 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
352
410
|
|
|
353
411
|
static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_UpdateWnsChannelAsync(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager* self, PyObject* args) noexcept
|
|
354
412
|
{
|
|
355
|
-
auto arg_count =
|
|
413
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
356
414
|
|
|
357
415
|
if (arg_count == 2)
|
|
358
416
|
{
|
|
@@ -374,7 +432,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
374
432
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
375
433
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
376
434
|
|
|
377
|
-
return py::convert(
|
|
435
|
+
return py::convert([&]()
|
|
436
|
+
{
|
|
437
|
+
auto _gil = release_gil();
|
|
438
|
+
return self->obj.UpdateWnsChannelAsync(param0, param1);
|
|
439
|
+
}());
|
|
378
440
|
}
|
|
379
441
|
catch (...)
|
|
380
442
|
{
|
|
@@ -406,7 +468,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
406
468
|
return nullptr;
|
|
407
469
|
}
|
|
408
470
|
|
|
409
|
-
return py::convert(
|
|
471
|
+
return py::convert([&]()
|
|
472
|
+
{
|
|
473
|
+
auto _gil = release_gil();
|
|
474
|
+
return winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager::Current();
|
|
475
|
+
}());
|
|
410
476
|
}
|
|
411
477
|
catch (...)
|
|
412
478
|
{
|
|
@@ -442,7 +508,9 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
442
508
|
static PyMethodDef _methods_MicrosoftAccountMultiFactorAuthenticationManager[] = {
|
|
443
509
|
{ "add_device_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_AddDeviceAsync), METH_VARARGS, nullptr },
|
|
444
510
|
{ "approve_session_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_ApproveSessionAsync), METH_VARARGS, nullptr },
|
|
511
|
+
{ "approve_session_using_auth_session_info_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_ApproveSessionUsingAuthSessionInfoAsync), METH_VARARGS, nullptr },
|
|
445
512
|
{ "deny_session_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_DenySessionAsync), METH_VARARGS, nullptr },
|
|
513
|
+
{ "deny_session_using_auth_session_info_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_DenySessionUsingAuthSessionInfoAsync), METH_VARARGS, nullptr },
|
|
446
514
|
{ "get_one_time_pass_code_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_GetOneTimePassCodeAsync), METH_VARARGS, nullptr },
|
|
447
515
|
{ "get_sessions_and_unregistered_accounts_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_GetSessionsAndUnregisteredAccountsAsync), METH_VARARGS, nullptr },
|
|
448
516
|
{ "get_sessions_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_GetSessionsAsync), METH_VARARGS, nullptr },
|
|
@@ -450,20 +518,17 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
450
518
|
{ "update_wns_channel_async", reinterpret_cast<PyCFunction>(MicrosoftAccountMultiFactorAuthenticationManager_UpdateWnsChannelAsync), METH_VARARGS, nullptr },
|
|
451
519
|
{ "_assign_array_", _assign_array_MicrosoftAccountMultiFactorAuthenticationManager, METH_O | METH_STATIC, nullptr },
|
|
452
520
|
{ "_from", reinterpret_cast<PyCFunction>(_from_MicrosoftAccountMultiFactorAuthenticationManager), METH_O | METH_STATIC, nullptr },
|
|
453
|
-
{ }
|
|
454
|
-
};
|
|
521
|
+
{ }};
|
|
455
522
|
|
|
456
523
|
static PyGetSetDef _getset_MicrosoftAccountMultiFactorAuthenticationManager[] = {
|
|
457
|
-
{ }
|
|
458
|
-
};
|
|
524
|
+
{ }};
|
|
459
525
|
|
|
460
526
|
static PyType_Slot _type_slots_MicrosoftAccountMultiFactorAuthenticationManager[] = {
|
|
461
527
|
{ Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorAuthenticationManager) },
|
|
462
528
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorAuthenticationManager) },
|
|
463
529
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorAuthenticationManager) },
|
|
464
530
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorAuthenticationManager) },
|
|
465
|
-
{ }
|
|
466
|
-
};
|
|
531
|
+
{ }};
|
|
467
532
|
|
|
468
533
|
static PyType_Spec type_spec_MicrosoftAccountMultiFactorAuthenticationManager = {
|
|
469
534
|
"winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorAuthenticationManager",
|
|
@@ -474,12 +539,10 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
474
539
|
|
|
475
540
|
static PyGetSetDef getset_MicrosoftAccountMultiFactorAuthenticationManager_Static[] = {
|
|
476
541
|
{ "current", reinterpret_cast<getter>(MicrosoftAccountMultiFactorAuthenticationManager_get_Current), nullptr, nullptr, nullptr },
|
|
477
|
-
{ }
|
|
478
|
-
};
|
|
542
|
+
{ }};
|
|
479
543
|
|
|
480
544
|
static PyMethodDef methods_MicrosoftAccountMultiFactorAuthenticationManager_Static[] = {
|
|
481
|
-
{ }
|
|
482
|
-
};
|
|
545
|
+
{ }};
|
|
483
546
|
|
|
484
547
|
static PyType_Slot type_slots_MicrosoftAccountMultiFactorAuthenticationManager_Static[] =
|
|
485
548
|
{
|
|
@@ -489,14 +552,12 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
489
552
|
{ }
|
|
490
553
|
};
|
|
491
554
|
|
|
492
|
-
static PyType_Spec type_spec_MicrosoftAccountMultiFactorAuthenticationManager_Static =
|
|
493
|
-
{
|
|
555
|
+
static PyType_Spec type_spec_MicrosoftAccountMultiFactorAuthenticationManager_Static = {
|
|
494
556
|
"winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorAuthenticationManager_Static",
|
|
495
557
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
496
558
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
497
559
|
Py_TPFLAGS_DEFAULT,
|
|
498
|
-
type_slots_MicrosoftAccountMultiFactorAuthenticationManager_Static
|
|
499
|
-
};
|
|
560
|
+
type_slots_MicrosoftAccountMultiFactorAuthenticationManager_Static};
|
|
500
561
|
|
|
501
562
|
// ----- MicrosoftAccountMultiFactorGetSessionsResult class --------------------
|
|
502
563
|
|
|
@@ -532,7 +593,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
532
593
|
return nullptr;
|
|
533
594
|
}
|
|
534
595
|
|
|
535
|
-
return py::convert(
|
|
596
|
+
return py::convert([&]()
|
|
597
|
+
{
|
|
598
|
+
auto _gil = release_gil();
|
|
599
|
+
return self->obj.ServiceResponse();
|
|
600
|
+
}());
|
|
536
601
|
}
|
|
537
602
|
catch (...)
|
|
538
603
|
{
|
|
@@ -558,7 +623,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
558
623
|
return nullptr;
|
|
559
624
|
}
|
|
560
625
|
|
|
561
|
-
return py::convert(
|
|
626
|
+
return py::convert([&]()
|
|
627
|
+
{
|
|
628
|
+
auto _gil = release_gil();
|
|
629
|
+
return self->obj.Sessions();
|
|
630
|
+
}());
|
|
562
631
|
}
|
|
563
632
|
catch (...)
|
|
564
633
|
{
|
|
@@ -594,22 +663,19 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
594
663
|
static PyMethodDef _methods_MicrosoftAccountMultiFactorGetSessionsResult[] = {
|
|
595
664
|
{ "_assign_array_", _assign_array_MicrosoftAccountMultiFactorGetSessionsResult, METH_O | METH_STATIC, nullptr },
|
|
596
665
|
{ "_from", reinterpret_cast<PyCFunction>(_from_MicrosoftAccountMultiFactorGetSessionsResult), METH_O | METH_STATIC, nullptr },
|
|
597
|
-
{ }
|
|
598
|
-
};
|
|
666
|
+
{ }};
|
|
599
667
|
|
|
600
668
|
static PyGetSetDef _getset_MicrosoftAccountMultiFactorGetSessionsResult[] = {
|
|
601
669
|
{ "service_response", reinterpret_cast<getter>(MicrosoftAccountMultiFactorGetSessionsResult_get_ServiceResponse), nullptr, nullptr, nullptr },
|
|
602
670
|
{ "sessions", reinterpret_cast<getter>(MicrosoftAccountMultiFactorGetSessionsResult_get_Sessions), nullptr, nullptr, nullptr },
|
|
603
|
-
{ }
|
|
604
|
-
};
|
|
671
|
+
{ }};
|
|
605
672
|
|
|
606
673
|
static PyType_Slot _type_slots_MicrosoftAccountMultiFactorGetSessionsResult[] = {
|
|
607
674
|
{ Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorGetSessionsResult) },
|
|
608
675
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorGetSessionsResult) },
|
|
609
676
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorGetSessionsResult) },
|
|
610
677
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorGetSessionsResult) },
|
|
611
|
-
{ }
|
|
612
|
-
};
|
|
678
|
+
{ }};
|
|
613
679
|
|
|
614
680
|
static PyType_Spec type_spec_MicrosoftAccountMultiFactorGetSessionsResult = {
|
|
615
681
|
"winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorGetSessionsResult",
|
|
@@ -652,7 +718,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
652
718
|
return nullptr;
|
|
653
719
|
}
|
|
654
720
|
|
|
655
|
-
return py::convert(
|
|
721
|
+
return py::convert([&]()
|
|
722
|
+
{
|
|
723
|
+
auto _gil = release_gil();
|
|
724
|
+
return self->obj.Code();
|
|
725
|
+
}());
|
|
656
726
|
}
|
|
657
727
|
catch (...)
|
|
658
728
|
{
|
|
@@ -678,7 +748,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
678
748
|
return nullptr;
|
|
679
749
|
}
|
|
680
750
|
|
|
681
|
-
return py::convert(
|
|
751
|
+
return py::convert([&]()
|
|
752
|
+
{
|
|
753
|
+
auto _gil = release_gil();
|
|
754
|
+
return self->obj.ServiceResponse();
|
|
755
|
+
}());
|
|
682
756
|
}
|
|
683
757
|
catch (...)
|
|
684
758
|
{
|
|
@@ -704,7 +778,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
704
778
|
return nullptr;
|
|
705
779
|
}
|
|
706
780
|
|
|
707
|
-
return py::convert(
|
|
781
|
+
return py::convert([&]()
|
|
782
|
+
{
|
|
783
|
+
auto _gil = release_gil();
|
|
784
|
+
return self->obj.TimeInterval();
|
|
785
|
+
}());
|
|
708
786
|
}
|
|
709
787
|
catch (...)
|
|
710
788
|
{
|
|
@@ -730,7 +808,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
730
808
|
return nullptr;
|
|
731
809
|
}
|
|
732
810
|
|
|
733
|
-
return py::convert(
|
|
811
|
+
return py::convert([&]()
|
|
812
|
+
{
|
|
813
|
+
auto _gil = release_gil();
|
|
814
|
+
return self->obj.TimeToLive();
|
|
815
|
+
}());
|
|
734
816
|
}
|
|
735
817
|
catch (...)
|
|
736
818
|
{
|
|
@@ -766,24 +848,21 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
766
848
|
static PyMethodDef _methods_MicrosoftAccountMultiFactorOneTimeCodedInfo[] = {
|
|
767
849
|
{ "_assign_array_", _assign_array_MicrosoftAccountMultiFactorOneTimeCodedInfo, METH_O | METH_STATIC, nullptr },
|
|
768
850
|
{ "_from", reinterpret_cast<PyCFunction>(_from_MicrosoftAccountMultiFactorOneTimeCodedInfo), METH_O | METH_STATIC, nullptr },
|
|
769
|
-
{ }
|
|
770
|
-
};
|
|
851
|
+
{ }};
|
|
771
852
|
|
|
772
853
|
static PyGetSetDef _getset_MicrosoftAccountMultiFactorOneTimeCodedInfo[] = {
|
|
773
854
|
{ "code", reinterpret_cast<getter>(MicrosoftAccountMultiFactorOneTimeCodedInfo_get_Code), nullptr, nullptr, nullptr },
|
|
774
855
|
{ "service_response", reinterpret_cast<getter>(MicrosoftAccountMultiFactorOneTimeCodedInfo_get_ServiceResponse), nullptr, nullptr, nullptr },
|
|
775
856
|
{ "time_interval", reinterpret_cast<getter>(MicrosoftAccountMultiFactorOneTimeCodedInfo_get_TimeInterval), nullptr, nullptr, nullptr },
|
|
776
857
|
{ "time_to_live", reinterpret_cast<getter>(MicrosoftAccountMultiFactorOneTimeCodedInfo_get_TimeToLive), nullptr, nullptr, nullptr },
|
|
777
|
-
{ }
|
|
778
|
-
};
|
|
858
|
+
{ }};
|
|
779
859
|
|
|
780
860
|
static PyType_Slot _type_slots_MicrosoftAccountMultiFactorOneTimeCodedInfo[] = {
|
|
781
861
|
{ Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorOneTimeCodedInfo) },
|
|
782
862
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorOneTimeCodedInfo) },
|
|
783
863
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorOneTimeCodedInfo) },
|
|
784
864
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorOneTimeCodedInfo) },
|
|
785
|
-
{ }
|
|
786
|
-
};
|
|
865
|
+
{ }};
|
|
787
866
|
|
|
788
867
|
static PyType_Spec type_spec_MicrosoftAccountMultiFactorOneTimeCodedInfo = {
|
|
789
868
|
"winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorOneTimeCodedInfo",
|
|
@@ -826,7 +905,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
826
905
|
return nullptr;
|
|
827
906
|
}
|
|
828
907
|
|
|
829
|
-
return py::convert(
|
|
908
|
+
return py::convert([&]()
|
|
909
|
+
{
|
|
910
|
+
auto _gil = release_gil();
|
|
911
|
+
return self->obj.ApprovalStatus();
|
|
912
|
+
}());
|
|
830
913
|
}
|
|
831
914
|
catch (...)
|
|
832
915
|
{
|
|
@@ -852,7 +935,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
852
935
|
return nullptr;
|
|
853
936
|
}
|
|
854
937
|
|
|
855
|
-
return py::convert(
|
|
938
|
+
return py::convert([&]()
|
|
939
|
+
{
|
|
940
|
+
auto _gil = release_gil();
|
|
941
|
+
return self->obj.AuthenticationType();
|
|
942
|
+
}());
|
|
856
943
|
}
|
|
857
944
|
catch (...)
|
|
858
945
|
{
|
|
@@ -878,7 +965,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
878
965
|
return nullptr;
|
|
879
966
|
}
|
|
880
967
|
|
|
881
|
-
return py::convert(
|
|
968
|
+
return py::convert([&]()
|
|
969
|
+
{
|
|
970
|
+
auto _gil = release_gil();
|
|
971
|
+
return self->obj.DisplaySessionId();
|
|
972
|
+
}());
|
|
882
973
|
}
|
|
883
974
|
catch (...)
|
|
884
975
|
{
|
|
@@ -904,7 +995,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
904
995
|
return nullptr;
|
|
905
996
|
}
|
|
906
997
|
|
|
907
|
-
return py::convert(
|
|
998
|
+
return py::convert([&]()
|
|
999
|
+
{
|
|
1000
|
+
auto _gil = release_gil();
|
|
1001
|
+
return self->obj.ExpirationTime();
|
|
1002
|
+
}());
|
|
908
1003
|
}
|
|
909
1004
|
catch (...)
|
|
910
1005
|
{
|
|
@@ -930,7 +1025,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
930
1025
|
return nullptr;
|
|
931
1026
|
}
|
|
932
1027
|
|
|
933
|
-
return py::convert(
|
|
1028
|
+
return py::convert([&]()
|
|
1029
|
+
{
|
|
1030
|
+
auto _gil = release_gil();
|
|
1031
|
+
return self->obj.RequestTime();
|
|
1032
|
+
}());
|
|
934
1033
|
}
|
|
935
1034
|
catch (...)
|
|
936
1035
|
{
|
|
@@ -956,7 +1055,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
956
1055
|
return nullptr;
|
|
957
1056
|
}
|
|
958
1057
|
|
|
959
|
-
return py::convert(
|
|
1058
|
+
return py::convert([&]()
|
|
1059
|
+
{
|
|
1060
|
+
auto _gil = release_gil();
|
|
1061
|
+
return self->obj.SessionId();
|
|
1062
|
+
}());
|
|
960
1063
|
}
|
|
961
1064
|
catch (...)
|
|
962
1065
|
{
|
|
@@ -982,7 +1085,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
982
1085
|
return nullptr;
|
|
983
1086
|
}
|
|
984
1087
|
|
|
985
|
-
return py::convert(
|
|
1088
|
+
return py::convert([&]()
|
|
1089
|
+
{
|
|
1090
|
+
auto _gil = release_gil();
|
|
1091
|
+
return self->obj.UserAccountId();
|
|
1092
|
+
}());
|
|
986
1093
|
}
|
|
987
1094
|
catch (...)
|
|
988
1095
|
{
|
|
@@ -1018,8 +1125,7 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
1018
1125
|
static PyMethodDef _methods_MicrosoftAccountMultiFactorSessionInfo[] = {
|
|
1019
1126
|
{ "_assign_array_", _assign_array_MicrosoftAccountMultiFactorSessionInfo, METH_O | METH_STATIC, nullptr },
|
|
1020
1127
|
{ "_from", reinterpret_cast<PyCFunction>(_from_MicrosoftAccountMultiFactorSessionInfo), METH_O | METH_STATIC, nullptr },
|
|
1021
|
-
{ }
|
|
1022
|
-
};
|
|
1128
|
+
{ }};
|
|
1023
1129
|
|
|
1024
1130
|
static PyGetSetDef _getset_MicrosoftAccountMultiFactorSessionInfo[] = {
|
|
1025
1131
|
{ "approval_status", reinterpret_cast<getter>(MicrosoftAccountMultiFactorSessionInfo_get_ApprovalStatus), nullptr, nullptr, nullptr },
|
|
@@ -1029,16 +1135,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
1029
1135
|
{ "request_time", reinterpret_cast<getter>(MicrosoftAccountMultiFactorSessionInfo_get_RequestTime), nullptr, nullptr, nullptr },
|
|
1030
1136
|
{ "session_id", reinterpret_cast<getter>(MicrosoftAccountMultiFactorSessionInfo_get_SessionId), nullptr, nullptr, nullptr },
|
|
1031
1137
|
{ "user_account_id", reinterpret_cast<getter>(MicrosoftAccountMultiFactorSessionInfo_get_UserAccountId), nullptr, nullptr, nullptr },
|
|
1032
|
-
{ }
|
|
1033
|
-
};
|
|
1138
|
+
{ }};
|
|
1034
1139
|
|
|
1035
1140
|
static PyType_Slot _type_slots_MicrosoftAccountMultiFactorSessionInfo[] = {
|
|
1036
1141
|
{ Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorSessionInfo) },
|
|
1037
1142
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorSessionInfo) },
|
|
1038
1143
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorSessionInfo) },
|
|
1039
1144
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorSessionInfo) },
|
|
1040
|
-
{ }
|
|
1041
|
-
};
|
|
1145
|
+
{ }};
|
|
1042
1146
|
|
|
1043
1147
|
static PyType_Spec type_spec_MicrosoftAccountMultiFactorSessionInfo = {
|
|
1044
1148
|
"winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorSessionInfo",
|
|
@@ -1081,7 +1185,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
1081
1185
|
return nullptr;
|
|
1082
1186
|
}
|
|
1083
1187
|
|
|
1084
|
-
return py::convert(
|
|
1188
|
+
return py::convert([&]()
|
|
1189
|
+
{
|
|
1190
|
+
auto _gil = release_gil();
|
|
1191
|
+
return self->obj.ServiceResponse();
|
|
1192
|
+
}());
|
|
1085
1193
|
}
|
|
1086
1194
|
catch (...)
|
|
1087
1195
|
{
|
|
@@ -1107,7 +1215,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
1107
1215
|
return nullptr;
|
|
1108
1216
|
}
|
|
1109
1217
|
|
|
1110
|
-
return py::convert(
|
|
1218
|
+
return py::convert([&]()
|
|
1219
|
+
{
|
|
1220
|
+
auto _gil = release_gil();
|
|
1221
|
+
return self->obj.Sessions();
|
|
1222
|
+
}());
|
|
1111
1223
|
}
|
|
1112
1224
|
catch (...)
|
|
1113
1225
|
{
|
|
@@ -1133,7 +1245,11 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
1133
1245
|
return nullptr;
|
|
1134
1246
|
}
|
|
1135
1247
|
|
|
1136
|
-
return py::convert(
|
|
1248
|
+
return py::convert([&]()
|
|
1249
|
+
{
|
|
1250
|
+
auto _gil = release_gil();
|
|
1251
|
+
return self->obj.UnregisteredAccounts();
|
|
1252
|
+
}());
|
|
1137
1253
|
}
|
|
1138
1254
|
catch (...)
|
|
1139
1255
|
{
|
|
@@ -1169,23 +1285,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
|
|
|
1169
1285
|
static PyMethodDef _methods_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo[] = {
|
|
1170
1286
|
{ "_assign_array_", _assign_array_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, METH_O | METH_STATIC, nullptr },
|
|
1171
1287
|
{ "_from", reinterpret_cast<PyCFunction>(_from_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo), METH_O | METH_STATIC, nullptr },
|
|
1172
|
-
{ }
|
|
1173
|
-
};
|
|
1288
|
+
{ }};
|
|
1174
1289
|
|
|
1175
1290
|
static PyGetSetDef _getset_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo[] = {
|
|
1176
1291
|
{ "service_response", reinterpret_cast<getter>(MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_get_ServiceResponse), nullptr, nullptr, nullptr },
|
|
1177
1292
|
{ "sessions", reinterpret_cast<getter>(MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_get_Sessions), nullptr, nullptr, nullptr },
|
|
1178
1293
|
{ "unregistered_accounts", reinterpret_cast<getter>(MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_get_UnregisteredAccounts), nullptr, nullptr, nullptr },
|
|
1179
|
-
{ }
|
|
1180
|
-
};
|
|
1294
|
+
{ }};
|
|
1181
1295
|
|
|
1182
1296
|
static PyType_Slot _type_slots_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo[] = {
|
|
1183
1297
|
{ Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo) },
|
|
1184
1298
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo) },
|
|
1185
1299
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo) },
|
|
1186
1300
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo) },
|
|
1187
|
-
{ }
|
|
1188
|
-
};
|
|
1301
|
+
{ }};
|
|
1189
1302
|
|
|
1190
1303
|
static PyType_Spec type_spec_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo = {
|
|
1191
1304
|
"winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo",
|
|
@@ -1226,6 +1339,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_identity_core(void)
|
|
|
1226
1339
|
return nullptr;
|
|
1227
1340
|
}
|
|
1228
1341
|
|
|
1342
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1343
|
+
if (!inspectable_meta_type)
|
|
1344
|
+
{
|
|
1345
|
+
return nullptr;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1229
1348
|
auto object_type = py::get_object_type();
|
|
1230
1349
|
if (!object_type)
|
|
1231
1350
|
{
|
|
@@ -1239,7 +1358,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_identity_core(void)
|
|
|
1239
1358
|
return nullptr;
|
|
1240
1359
|
}
|
|
1241
1360
|
|
|
1242
|
-
py::pyobj_handle
|
|
1361
|
+
py::pyobj_handle MicrosoftAccountMultiFactorAuthenticationManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1362
|
+
if (!MicrosoftAccountMultiFactorAuthenticationManager_Static_bases)
|
|
1363
|
+
{
|
|
1364
|
+
return nullptr;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
py::pyobj_handle type_MicrosoftAccountMultiFactorAuthenticationManager_Static{PyType_FromSpecWithBases(&type_spec_MicrosoftAccountMultiFactorAuthenticationManager_Static, MicrosoftAccountMultiFactorAuthenticationManager_Static_bases.get())};
|
|
1243
1368
|
if (!type_MicrosoftAccountMultiFactorAuthenticationManager_Static)
|
|
1244
1369
|
{
|
|
1245
1370
|
return nullptr;
|
|
@@ -1251,25 +1376,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_identity_core(void)
|
|
|
1251
1376
|
return nullptr;
|
|
1252
1377
|
}
|
|
1253
1378
|
|
|
1254
|
-
py::pytype_handle MicrosoftAccountMultiFactorGetSessionsResult_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorGetSessionsResult, object_bases.get(),
|
|
1379
|
+
py::pytype_handle MicrosoftAccountMultiFactorGetSessionsResult_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorGetSessionsResult, object_bases.get(), inspectable_meta_type)};
|
|
1255
1380
|
if (!MicrosoftAccountMultiFactorGetSessionsResult_type)
|
|
1256
1381
|
{
|
|
1257
1382
|
return nullptr;
|
|
1258
1383
|
}
|
|
1259
1384
|
|
|
1260
|
-
py::pytype_handle MicrosoftAccountMultiFactorOneTimeCodedInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorOneTimeCodedInfo, object_bases.get(),
|
|
1385
|
+
py::pytype_handle MicrosoftAccountMultiFactorOneTimeCodedInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorOneTimeCodedInfo, object_bases.get(), inspectable_meta_type)};
|
|
1261
1386
|
if (!MicrosoftAccountMultiFactorOneTimeCodedInfo_type)
|
|
1262
1387
|
{
|
|
1263
1388
|
return nullptr;
|
|
1264
1389
|
}
|
|
1265
1390
|
|
|
1266
|
-
py::pytype_handle MicrosoftAccountMultiFactorSessionInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorSessionInfo, object_bases.get(),
|
|
1391
|
+
py::pytype_handle MicrosoftAccountMultiFactorSessionInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorSessionInfo, object_bases.get(), inspectable_meta_type)};
|
|
1267
1392
|
if (!MicrosoftAccountMultiFactorSessionInfo_type)
|
|
1268
1393
|
{
|
|
1269
1394
|
return nullptr;
|
|
1270
1395
|
}
|
|
1271
1396
|
|
|
1272
|
-
py::pytype_handle MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, object_bases.get(),
|
|
1397
|
+
py::pytype_handle MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, object_bases.get(), inspectable_meta_type)};
|
|
1273
1398
|
if (!MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_type)
|
|
1274
1399
|
{
|
|
1275
1400
|
return nullptr;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "winrt-sdk"]
|
|
4
|
+
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Windows.Security.Authentication.Identity.Core"
|
|
9
9
|
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
10
|
readme = "README.md"
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Operating System :: Microsoft :: Windows",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.1.0
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
|
|
15
|
+
from winrt.windows.security.authentication.identity.core import MicrosoftAccountMultiFactorAuthenticationType, MicrosoftAccountMultiFactorServiceResponse, MicrosoftAccountMultiFactorSessionApprovalStatus, MicrosoftAccountMultiFactorSessionAuthenticationStatus
|
|
16
|
+
|
|
17
|
+
Self = typing.TypeVar('Self')
|
|
18
|
+
|
|
19
|
+
@typing.final
|
|
20
|
+
class MicrosoftAccountMultiFactorAuthenticationManager_Static(winrt._winrt.IInspectable_Static):
|
|
21
|
+
# Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::get_Current()
|
|
22
|
+
@_property
|
|
23
|
+
def current(cls) -> MicrosoftAccountMultiFactorAuthenticationManager: ...
|
|
24
|
+
|
|
25
|
+
@typing.final
|
|
26
|
+
class MicrosoftAccountMultiFactorAuthenticationManager(winrt.system.Object, metaclass=MicrosoftAccountMultiFactorAuthenticationManager_Static):
|
|
27
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::AddDeviceAsync(System.String,System.String,System.String)
|
|
28
|
+
def add_device_async(self, user_account_id: str, authentication_token: str, wns_channel_id: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
29
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::ApproveSessionAsync(Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionAuthenticationStatus,System.String,System.String,Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationType)
|
|
30
|
+
def approve_session_async(self, session_authentiction_status: MicrosoftAccountMultiFactorSessionAuthenticationStatus, user_account_id: str, session_id: str, session_authentication_type: MicrosoftAccountMultiFactorAuthenticationType, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
31
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::ApproveSessionAsync(Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionAuthenticationStatus,Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo)
|
|
32
|
+
def approve_session_using_auth_session_info_async(self, session_authentiction_status: MicrosoftAccountMultiFactorSessionAuthenticationStatus, authentication_session_info: MicrosoftAccountMultiFactorSessionInfo, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
33
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::DenySessionAsync(System.String,System.String,Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationType)
|
|
34
|
+
def deny_session_async(self, user_account_id: str, session_id: str, session_authentication_type: MicrosoftAccountMultiFactorAuthenticationType, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
35
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::DenySessionAsync(Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo)
|
|
36
|
+
def deny_session_using_auth_session_info_async(self, authentication_session_info: MicrosoftAccountMultiFactorSessionInfo, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
37
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::GetOneTimePassCodeAsync(System.String,System.UInt32)
|
|
38
|
+
def get_one_time_pass_code_async(self, user_account_id: str, code_length: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorOneTimeCodedInfo]: ...
|
|
39
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::GetSessionsAndUnregisteredAccountsAsync(Windows.Foundation.Collections.IIterable`1<System.String>)
|
|
40
|
+
def get_sessions_and_unregistered_accounts_async(self, user_account_id_list: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo]: ...
|
|
41
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::GetSessionsAsync(Windows.Foundation.Collections.IIterable`1<System.String>)
|
|
42
|
+
def get_sessions_async(self, user_account_id_list: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorGetSessionsResult]: ...
|
|
43
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::RemoveDeviceAsync(System.String)
|
|
44
|
+
def remove_device_async(self, user_account_id: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
45
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager::UpdateWnsChannelAsync(System.String,System.String)
|
|
46
|
+
def update_wns_channel_async(self, user_account_id: str, channel_uri: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
47
|
+
|
|
48
|
+
@typing.final
|
|
49
|
+
class MicrosoftAccountMultiFactorGetSessionsResult(winrt.system.Object):
|
|
50
|
+
# Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult::get_ServiceResponse()
|
|
51
|
+
@_property
|
|
52
|
+
def service_response(self) -> MicrosoftAccountMultiFactorServiceResponse: ...
|
|
53
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult::get_Sessions()
|
|
54
|
+
@_property
|
|
55
|
+
def sessions(self) -> typing.Sequence[MicrosoftAccountMultiFactorSessionInfo]: ...
|
|
56
|
+
|
|
57
|
+
@typing.final
|
|
58
|
+
class MicrosoftAccountMultiFactorOneTimeCodedInfo(winrt.system.Object):
|
|
59
|
+
# System.String Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo::get_Code()
|
|
60
|
+
@_property
|
|
61
|
+
def code(self) -> str: ...
|
|
62
|
+
# Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo::get_ServiceResponse()
|
|
63
|
+
@_property
|
|
64
|
+
def service_response(self) -> MicrosoftAccountMultiFactorServiceResponse: ...
|
|
65
|
+
# Windows.Foundation.TimeSpan Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo::get_TimeInterval()
|
|
66
|
+
@_property
|
|
67
|
+
def time_interval(self) -> datetime.timedelta: ...
|
|
68
|
+
# Windows.Foundation.TimeSpan Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo::get_TimeToLive()
|
|
69
|
+
@_property
|
|
70
|
+
def time_to_live(self) -> datetime.timedelta: ...
|
|
71
|
+
|
|
72
|
+
@typing.final
|
|
73
|
+
class MicrosoftAccountMultiFactorSessionInfo(winrt.system.Object):
|
|
74
|
+
# Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionApprovalStatus Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo::get_ApprovalStatus()
|
|
75
|
+
@_property
|
|
76
|
+
def approval_status(self) -> MicrosoftAccountMultiFactorSessionApprovalStatus: ...
|
|
77
|
+
# Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationType Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo::get_AuthenticationType()
|
|
78
|
+
@_property
|
|
79
|
+
def authentication_type(self) -> MicrosoftAccountMultiFactorAuthenticationType: ...
|
|
80
|
+
# System.String Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo::get_DisplaySessionId()
|
|
81
|
+
@_property
|
|
82
|
+
def display_session_id(self) -> str: ...
|
|
83
|
+
# Windows.Foundation.DateTime Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo::get_ExpirationTime()
|
|
84
|
+
@_property
|
|
85
|
+
def expiration_time(self) -> datetime.datetime: ...
|
|
86
|
+
# Windows.Foundation.DateTime Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo::get_RequestTime()
|
|
87
|
+
@_property
|
|
88
|
+
def request_time(self) -> datetime.datetime: ...
|
|
89
|
+
# System.String Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo::get_SessionId()
|
|
90
|
+
@_property
|
|
91
|
+
def session_id(self) -> str: ...
|
|
92
|
+
# System.String Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo::get_UserAccountId()
|
|
93
|
+
@_property
|
|
94
|
+
def user_account_id(self) -> str: ...
|
|
95
|
+
|
|
96
|
+
@typing.final
|
|
97
|
+
class MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo(winrt.system.Object):
|
|
98
|
+
# Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorServiceResponse Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo::get_ServiceResponse()
|
|
99
|
+
@_property
|
|
100
|
+
def service_response(self) -> MicrosoftAccountMultiFactorServiceResponse: ...
|
|
101
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo::get_Sessions()
|
|
102
|
+
@_property
|
|
103
|
+
def sessions(self) -> typing.Sequence[MicrosoftAccountMultiFactorSessionInfo]: ...
|
|
104
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo::get_UnregisteredAccounts()
|
|
105
|
+
@_property
|
|
106
|
+
def unregistered_accounts(self) -> typing.Sequence[str]: ...
|
|
107
|
+
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_security_authentication_identity_core import (
|
|
7
|
+
MicrosoftAccountMultiFactorAuthenticationManager,
|
|
8
|
+
MicrosoftAccountMultiFactorGetSessionsResult,
|
|
9
|
+
MicrosoftAccountMultiFactorOneTimeCodedInfo,
|
|
10
|
+
MicrosoftAccountMultiFactorSessionInfo,
|
|
11
|
+
MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo,
|
|
12
|
+
)
|
|
7
13
|
|
|
8
14
|
__all__ = [
|
|
9
15
|
"MicrosoftAccountMultiFactorAuthenticationType",
|
|
@@ -42,7 +48,7 @@ class MicrosoftAccountMultiFactorServiceResponse(enum.IntEnum):
|
|
|
42
48
|
OPERATION_CANCELED_BY_USER = 17
|
|
43
49
|
NGC_DISABLED_BY_SERVER = 18
|
|
44
50
|
NGC_KEY_NOT_FOUND_ON_SERVER = 19
|
|
45
|
-
|
|
51
|
+
UI_REQUIRED = 20
|
|
46
52
|
DEVICE_ID_CHANGED = 21
|
|
47
53
|
|
|
48
54
|
class MicrosoftAccountMultiFactorSessionApprovalStatus(enum.IntEnum):
|
|
@@ -54,8 +60,3 @@ class MicrosoftAccountMultiFactorSessionAuthenticationStatus(enum.IntEnum):
|
|
|
54
60
|
AUTHENTICATED = 0
|
|
55
61
|
UNAUTHENTICATED = 1
|
|
56
62
|
|
|
57
|
-
MicrosoftAccountMultiFactorAuthenticationManager = _winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorAuthenticationManager
|
|
58
|
-
MicrosoftAccountMultiFactorGetSessionsResult = _winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorGetSessionsResult
|
|
59
|
-
MicrosoftAccountMultiFactorOneTimeCodedInfo = _winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorOneTimeCodedInfo
|
|
60
|
-
MicrosoftAccountMultiFactorSessionInfo = _winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorSessionInfo
|
|
61
|
-
MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo = _winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.Security.Authentication.Identity.Core
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.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.3.0
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.foundation as windows_foundation
|
|
13
|
-
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
-
|
|
15
|
-
from winrt.windows.security.authentication.identity.core import MicrosoftAccountMultiFactorAuthenticationType, MicrosoftAccountMultiFactorServiceResponse, MicrosoftAccountMultiFactorSessionApprovalStatus, MicrosoftAccountMultiFactorSessionAuthenticationStatus
|
|
16
|
-
|
|
17
|
-
Self = typing.TypeVar('Self')
|
|
18
|
-
|
|
19
|
-
@typing.final
|
|
20
|
-
class MicrosoftAccountMultiFactorAuthenticationManager_Static(type):
|
|
21
|
-
@_property
|
|
22
|
-
def current(cls) -> typing.Optional[MicrosoftAccountMultiFactorAuthenticationManager]: ...
|
|
23
|
-
|
|
24
|
-
@typing.final
|
|
25
|
-
class MicrosoftAccountMultiFactorAuthenticationManager(winrt.system.Object, metaclass=MicrosoftAccountMultiFactorAuthenticationManager_Static):
|
|
26
|
-
@staticmethod
|
|
27
|
-
def _from(obj: winrt.system.Object, /) -> MicrosoftAccountMultiFactorAuthenticationManager: ...
|
|
28
|
-
def add_device_async(self, user_account_id: str, authentication_token: str, wns_channel_id: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
29
|
-
@typing.overload
|
|
30
|
-
def approve_session_async(self, session_authentiction_status: MicrosoftAccountMultiFactorSessionAuthenticationStatus, authentication_session_info: typing.Optional[MicrosoftAccountMultiFactorSessionInfo], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
31
|
-
@typing.overload
|
|
32
|
-
def approve_session_async(self, session_authentiction_status: MicrosoftAccountMultiFactorSessionAuthenticationStatus, user_account_id: str, session_id: str, session_authentication_type: MicrosoftAccountMultiFactorAuthenticationType, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
33
|
-
@typing.overload
|
|
34
|
-
def deny_session_async(self, authentication_session_info: typing.Optional[MicrosoftAccountMultiFactorSessionInfo], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
35
|
-
@typing.overload
|
|
36
|
-
def deny_session_async(self, user_account_id: str, session_id: str, session_authentication_type: MicrosoftAccountMultiFactorAuthenticationType, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
37
|
-
def get_one_time_pass_code_async(self, user_account_id: str, code_length: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorOneTimeCodedInfo]: ...
|
|
38
|
-
def get_sessions_and_unregistered_accounts_async(self, user_account_id_list: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo]: ...
|
|
39
|
-
def get_sessions_async(self, user_account_id_list: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorGetSessionsResult]: ...
|
|
40
|
-
def remove_device_async(self, user_account_id: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
41
|
-
def update_wns_channel_async(self, user_account_id: str, channel_uri: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
|
|
42
|
-
|
|
43
|
-
@typing.final
|
|
44
|
-
class MicrosoftAccountMultiFactorGetSessionsResult(winrt.system.Object):
|
|
45
|
-
@staticmethod
|
|
46
|
-
def _from(obj: winrt.system.Object, /) -> MicrosoftAccountMultiFactorGetSessionsResult: ...
|
|
47
|
-
@_property
|
|
48
|
-
def service_response(self) -> MicrosoftAccountMultiFactorServiceResponse: ...
|
|
49
|
-
@_property
|
|
50
|
-
def sessions(self) -> typing.Optional[windows_foundation_collections.IVectorView[MicrosoftAccountMultiFactorSessionInfo]]: ...
|
|
51
|
-
|
|
52
|
-
@typing.final
|
|
53
|
-
class MicrosoftAccountMultiFactorOneTimeCodedInfo(winrt.system.Object):
|
|
54
|
-
@staticmethod
|
|
55
|
-
def _from(obj: winrt.system.Object, /) -> MicrosoftAccountMultiFactorOneTimeCodedInfo: ...
|
|
56
|
-
@_property
|
|
57
|
-
def code(self) -> str: ...
|
|
58
|
-
@_property
|
|
59
|
-
def service_response(self) -> MicrosoftAccountMultiFactorServiceResponse: ...
|
|
60
|
-
@_property
|
|
61
|
-
def time_interval(self) -> datetime.timedelta: ...
|
|
62
|
-
@_property
|
|
63
|
-
def time_to_live(self) -> datetime.timedelta: ...
|
|
64
|
-
|
|
65
|
-
@typing.final
|
|
66
|
-
class MicrosoftAccountMultiFactorSessionInfo(winrt.system.Object):
|
|
67
|
-
@staticmethod
|
|
68
|
-
def _from(obj: winrt.system.Object, /) -> MicrosoftAccountMultiFactorSessionInfo: ...
|
|
69
|
-
@_property
|
|
70
|
-
def approval_status(self) -> MicrosoftAccountMultiFactorSessionApprovalStatus: ...
|
|
71
|
-
@_property
|
|
72
|
-
def authentication_type(self) -> MicrosoftAccountMultiFactorAuthenticationType: ...
|
|
73
|
-
@_property
|
|
74
|
-
def display_session_id(self) -> str: ...
|
|
75
|
-
@_property
|
|
76
|
-
def expiration_time(self) -> datetime.datetime: ...
|
|
77
|
-
@_property
|
|
78
|
-
def request_time(self) -> datetime.datetime: ...
|
|
79
|
-
@_property
|
|
80
|
-
def session_id(self) -> str: ...
|
|
81
|
-
@_property
|
|
82
|
-
def user_account_id(self) -> str: ...
|
|
83
|
-
|
|
84
|
-
@typing.final
|
|
85
|
-
class MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo(winrt.system.Object):
|
|
86
|
-
@staticmethod
|
|
87
|
-
def _from(obj: winrt.system.Object, /) -> MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo: ...
|
|
88
|
-
@_property
|
|
89
|
-
def service_response(self) -> MicrosoftAccountMultiFactorServiceResponse: ...
|
|
90
|
-
@_property
|
|
91
|
-
def sessions(self) -> typing.Optional[windows_foundation_collections.IVectorView[MicrosoftAccountMultiFactorSessionInfo]]: ...
|
|
92
|
-
@_property
|
|
93
|
-
def unregistered_accounts(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
94
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|