Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class Authentication(BackendMessage):
PASSWORD_CHANGED = 10 # client doesn't do password changing, this should never be seen
PASSWORD_GRACE = 11
OAUTH = 12
TOTP = 14
HASH = 65536
HASH_MD5 = 65536 + 5
HASH_SHA512 = 65536 + 512
Expand Down
5 changes: 3 additions & 2 deletions vertica_python/vertica/messages/frontend_messages/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Startup(BulkFrontendMessage):

def __init__(self, user, database, session_label, os_user_name, autocommit,
binary_transfer, request_complex_types, oauth_access_token,
workload, auth_category):
workload, auth_category, totp=None):
BulkFrontendMessage.__init__(self)

try:
Expand Down Expand Up @@ -103,7 +103,8 @@ def __init__(self, user, database, session_label, os_user_name, autocommit,
if len(oauth_access_token) > 0:
# compatibility for protocol version 3.11
self.parameters[b'oauth_access_token'] = oauth_access_token

if totp is not None:
self.parameters[b'totp'] = totp
def read_bytes(self):
# The fixed protocol version is followed by pairs of parameter name and value strings.
# A zero byte is required as a terminator after the last name/value pair.
Expand Down