-
Notifications
You must be signed in to change notification settings - Fork 28
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
SNOW-715551: Support authentication with OKTA #799
base: master-2.0.0
Are you sure you want to change the base?
Conversation
|
||
//m_appID = m_connection->application_name; | ||
//m_appVersion = m_connection->application_version; | ||
m_appID = "ODBC"; |
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.
Is this feature needs server change and here is the temporary workaround to pass the test?
If so please comment in the ticket/PR and add TODO comment here to ensure this will be removed before release.
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.
Added the comment.
@@ -198,6 +198,12 @@ cJSON *STDCALL create_auth_json_body(SF_CONNECT *sf, | |||
// update authentication information to body | |||
auth_update_json_body(sf, body); | |||
|
|||
if (AUTH_OAUTH == getAuthenticatorType(sf->authenticator)) |
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.
Why we have this logic here not included in auth_update_json_body
?
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.
I moved this code because of #750 (comment).
@@ -160,36 +160,72 @@ void test_mfa_connect_with_duo_passcodeInPassword(void** unused) | |||
snowflake_term(sf); | |||
} | |||
|
|||
void test_okta_connect(void** unused) |
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.
Besides manual function test, can we have unit test cases in automation test? giving test cases in ODBC and libsfclient ones you made as examples.
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.
I made testing cases in the test_unit_okta.cpp
No description provided.