2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-21 10:43:15 +00:00

Update the Authentication object

This change updates the Authentication object, taking into account
the recent changes made to the Credential object hierarchy. A new
comprehensive unit test suite has been added for the Authentication
object. Usage of the object in the PyKMIP server has also been
updated to reflect these changes.
This commit is contained in:
Peter Hamilton
2018-02-26 10:12:21 -05:00
parent f72995490f
commit 8d492fcda4
4 changed files with 1097 additions and 23 deletions

View File

@@ -328,7 +328,10 @@ class KmipEngine(object):
# Process the authentication credentials
if header.authentication:
auth_credentials = header.authentication.credential
if header.authentication.credentials:
auth_credentials = header.authentication.credentials[0]
else:
auth_credentials = None
else:
auth_credentials = None