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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user