You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add underlying OSError info into Persistence exceptions
Refer to the PersistenceDecryptionError wiki page
Update msal_extensions/windows.py
Co-authored-by: Jiashuo Li <[email protected]>
Ignore consider-using-f-string, once and for all
Copy file name to clipboardExpand all lines: msal_extensions/windows.py
+11-2
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,15 @@ def raw(self):
39
39
_MEMCPY(blob_buffer, pb_data, cb_data)
40
40
returnblob_buffer.raw
41
41
42
+
_err_description= {
43
+
# Keys came from real world observation, values came from winerror.h (http://errors (Microsoft internal))
44
+
-2146893813: "Key not valid for use in specified state.",
45
+
-2146892987: "The requested operation cannot be completed. "
46
+
"The computer must be trusted for delegation and "
47
+
"the current user account must be configured to allow delegation. "
48
+
"See also https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/enable-computer-and-user-accounts-to-be-trusted-for-delegation",
49
+
13: "The data is invalid",
50
+
}
42
51
43
52
# This code is modeled from a StackOverflow question, which can be found here:
0 commit comments