Skip to content
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

Draft
wants to merge 19 commits into
base: master-2.0.0
Choose a base branch
from

Conversation

sfc-gh-ext-simba-jy
Copy link
Collaborator

No description provided.


//m_appID = m_connection->application_name;
//m_appVersion = m_connection->application_version;
m_appID = "ODBC";
Copy link
Collaborator

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.

Copy link
Collaborator Author

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))
Copy link
Collaborator

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 ?

Copy link
Collaborator Author

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)
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

@sfc-gh-ext-simba-jy sfc-gh-ext-simba-jy changed the base branch from master to master-2.0.0 December 19, 2024 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants