OK, so the spec says that password is a required piece of information in the PasswordCredentials struct (or at least, the example (page 21) shows a password field and no mention is made that the password is optional.
Indeed, in /keystone/logic/types/auth.py, we see this in PasswordCredentials.from_xml():
password = root.get("password")
if password == None: raise fault.BadRequestFault("Expecting a password")
So, either the spec or the code needs to change ;)
Plus, I created a test that passes None in the json/xml struct for password, and the server happily let me create the user anyway, so the code above doesn't quite work as expected :)
Hey Z,
OK, so the spec says that password is a required piece of information in the PasswordCredentials struct (or at least, the example (page 21) shows a password field and no mention is made that the password is optional.
Indeed, in /keystone/ logic/types/ auth.py, we see this in PasswordCredent ials.from_ xml():
if password == None:
So, either the spec or the code needs to change ;)
Plus, I created a test that passes None in the json/xml struct for password, and the server happily let me create the user anyway, so the code above doesn't quite work as expected :)