-
Notifications
You must be signed in to change notification settings - Fork 179
Add TOTP MFA authentication support to Python driver #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Why Go Unit tests "Corresponding Go unit tests have been added to validate the TOTP-based authentication flow." ?? Please correct this in the description. |
mkottakota1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, excellent structure — just minor cleanups needed for polish and safety
|
Corrected the description . |
|
Since, the Git pipelines are failing, I would like to see the local test suite results for the new and existing test cases to avoid regressions. |
|
Hi @mkottakota1 |
Fix the test case name |
Fix the test case name |
Hi Mani , I have updated the code based on your review comment. |
d60fecc to
f11da77
Compare
| cur.execute("GRANT AUTHENTICATION totp_auth TO totp_user") | ||
|
|
||
| # Generate TOTP | ||
| import pyotp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pyotp is imported 2 times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected it .
| import os | ||
| import pyotp | ||
| import pytest | ||
| import vertica_python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep only required imports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Mani , Kept only required import .
mkottakota1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Reviewed the code changes and changes are look good to me.
243d519 to
93afc78
Compare
…e technical details
93afc78 to
0282333
Compare



Vertica supports TOTP-based authentication as part of multi-factor authentication (MFA).
To enable MFA for a new user, create the user with the following command:
CREATE USER ravi IDENTIFIED BY 'vertica' ENFORCEMFA;
After the user is created, the generated secret key must be added to a TOTP app like Microsoft Authenticator.
The TOTP app will generate a time-based code every 30 seconds, which is required during user login.
Screenshot of testcase :
