CredDelete
requires Type
even if input object is <class 'dict'>
from CredEnumerate
#1775
Labels
CredDelete
requires Type
even if input object is <class 'dict'>
from CredEnumerate
#1775
Expected behavior and actual behavior.
I would expect
win32cred.CredDelete
method be capable of deleting a credential from the credential store withoutType
specification iff theTarget
input is<class 'dict'>
with key'Type'
having a value of typeint
.Instead, there is no overloaded
win32cred.CredDelete
to handle single parameter of credential object as dictionary.Steps to reproduce the problem.
Loop through the credential store to find and delete ones added by
keyring
Python module. Example code:Version of Python and pywin32
Work-around
In the example loop above, simply provide the
TargetName
andType
values as the two arguments toCredDelete
.Possible resolution
It looks like we just need for
PyCredDelete
to be able to check if theTarget
is a dictionary object, then extract theType
attribute.pywin32/win32/src/win32credmodule.cpp
Line 621 in 0270645
The text was updated successfully, but these errors were encountered: