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

Open
wants to merge 64 commits into
base: master
Choose a base branch
from

Conversation

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

@sfc-gh-ext-simba-jy sfc-gh-ext-simba-jy commented Dec 17, 2024

  • Implemented Okta authentication.
  • Unit testing for authentication was added.
  • Manual testing for authentication was added.

cpp/lib/Authenticator.cpp Show resolved Hide resolved
m_retryTimeout = get_retry_timeout(m_connection);


//Todo: Need the server change. Currently testing with ODBC info.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sfc-gh-mmishchenko will prepare PR to enable OKTA auth on the server side in version 2.0.0 of libsnowflakeclient

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 will remove this before I merge it or let me know if I can remove this.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot remove it now, we will need to remove it before releasing version 2.0.0 when the change on the server side is deployed

cpp/lib/Authenticator.cpp Show resolved Hide resolved
cpp/lib/Authenticator.cpp Show resolved Hide resolved
cpp/lib/Authenticator.cpp Show resolved Hide resolved
cpp/lib/Authenticator.cpp Show resolved Hide resolved
cpp/lib/IAuth.cpp Show resolved Hide resolved
cpp/lib/IAuth.cpp Show resolved Hide resolved
cpp/lib/IAuth.cpp Show resolved Hide resolved
@@ -0,0 +1,415 @@
/**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add some comment why do we need to have this file here - also let's add a link to source (is it https://github.com/ooxi/entities/blob/master/entities.c) ?

do we need the whole file here? how is it related to the boost library we have in the project?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should create an explicit dependency - @sfc-gh-ext-simba-hx @sfc-gh-jszczerbinski @sfc-gh-mmishchenko WDYT?

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 added the comment on the top.

The function we need is 'decode_html_entities_utf8'. This function calls parse_entity, which in turn calls both putc_utf8 and get_named_entity. The get_named_entity function then calls cmp. As a result, we need whole file.

Base automatically changed from master-2.0.0 to master January 9, 2025 09:09
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.

5 participants