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 #750

Closed
wants to merge 73 commits into from
Closed
Show file tree
Hide file tree
Changes from 67 commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
22cd9c4
save
sfc-gh-ext-simba-jy Sep 13, 2024
ed99744
save
sfc-gh-ext-simba-jy Oct 2, 2024
37bca3e
implemented the okta authentication
sfc-gh-ext-simba-jy Oct 8, 2024
b76617c
comment out the connection manual testing
sfc-gh-ext-simba-jy Oct 8, 2024
91bcf7e
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Oct 8, 2024
6204854
added comments and updated codes
sfc-gh-ext-simba-jy Oct 8, 2024
73468ec
add entities files
sfc-gh-ext-simba-jy Oct 8, 2024
555cbfb
fix
sfc-gh-ext-simba-jy Oct 8, 2024
4be9c7f
fix
sfc-gh-ext-simba-jy Oct 9, 2024
bf2ca7d
fix
sfc-gh-ext-simba-jy Oct 9, 2024
fd5caa0
fix testing cases
sfc-gh-ext-simba-jy Oct 9, 2024
4271b2c
fixed the error on mac
sfc-gh-ext-simba-jy Oct 9, 2024
fd57683
removed unnecessary changes
sfc-gh-ext-simba-jy Oct 9, 2024
d8680d0
added retry parameters in the curl_get_call and applied the retry str…
sfc-gh-ext-simba-jy Oct 9, 2024
127cd76
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Oct 10, 2024
48aae9f
add one more condition for the retry strategy
sfc-gh-ext-simba-jy Oct 10, 2024
9245aae
removed the error in catch
sfc-gh-ext-simba-jy Oct 10, 2024
40077ca
removed unnecessary changes
sfc-gh-ext-simba-jy Oct 10, 2024
2c56894
fix
sfc-gh-ext-simba-jy Oct 10, 2024
6e58935
comment out manual test
sfc-gh-ext-simba-jy Oct 10, 2024
ef7d51a
add retried_count increment on authentication level
sfc-gh-ext-simba-jy Oct 10, 2024
d7d9967
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Oct 11, 2024
5b84cd2
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Oct 15, 2024
27e8e47
refactored the renew timeout condition
sfc-gh-ext-simba-jy Oct 15, 2024
9659d7c
added entities
sfc-gh-ext-simba-jy Oct 15, 2024
4ee0986
Merge branch 'SNOW-715551' of https://github.com/snowflakedb/libsnowf…
sfc-gh-ext-simba-jy Oct 15, 2024
9b64bea
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Oct 17, 2024
467a7b8
fix error when pull the master branch
sfc-gh-ext-simba-jy Oct 17, 2024
5730384
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Oct 17, 2024
bc897ad
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Oct 28, 2024
cc6c84c
fix error
sfc-gh-ext-simba-jy Oct 28, 2024
82c95ff
fix
sfc-gh-ext-simba-jy Nov 4, 2024
5153d76
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Nov 4, 2024
b26e378
add util.cpp
sfc-gh-ext-simba-jy Nov 4, 2024
d8deac1
fix
sfc-gh-ext-simba-jy Nov 5, 2024
d928094
refactored
sfc-gh-ext-simba-jy Nov 7, 2024
ef3612c
fix
sfc-gh-ext-simba-jy Nov 7, 2024
f1dc320
refactoring the code
sfc-gh-ext-simba-jy Nov 12, 2024
e590594
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Nov 12, 2024
c1a128d
fix
sfc-gh-ext-simba-jy Nov 12, 2024
6ebb283
fix
sfc-gh-ext-simba-jy Nov 12, 2024
f26bca4
fix
sfc-gh-ext-simba-jy Nov 12, 2024
b1142e9
fix
sfc-gh-ext-simba-jy Nov 12, 2024
9b11f2d
fix
sfc-gh-ext-simba-jy Nov 12, 2024
b5adccc
refactor code
sfc-gh-ext-simba-jy Nov 14, 2024
5ee2a06
updated log messages
sfc-gh-ext-simba-jy Nov 14, 2024
a729180
fix
sfc-gh-ext-simba-jy Nov 14, 2024
96bd67d
mac error fix
sfc-gh-ext-simba-jy Nov 14, 2024
5896aef
mac error fix
sfc-gh-ext-simba-jy Nov 14, 2024
9dcd33d
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Nov 14, 2024
a47a982
change function names
sfc-gh-ext-simba-jy Nov 14, 2024
72d2a77
Merge branch 'SNOW-715551' of https://github.com/snowflakedb/libsnowf…
sfc-gh-ext-simba-jy Nov 14, 2024
74c6b90
change the parameter name
sfc-gh-ext-simba-jy Nov 14, 2024
22438cd
refactor it with NON_JSON_RESP
sfc-gh-ext-simba-jy Nov 15, 2024
cb35830
remove and refactor unnecessary data
sfc-gh-ext-simba-jy Nov 15, 2024
df7d539
lint fix
sfc-gh-ext-simba-jy Nov 15, 2024
bf71bb3
refactoring IAuth
sfc-gh-ext-simba-jy Nov 22, 2024
1f37bf8
add IAuth files
sfc-gh-ext-simba-jy Nov 22, 2024
cd3cf01
fix minior errors
sfc-gh-ext-simba-jy Nov 26, 2024
44bdf3a
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Nov 26, 2024
8eb336a
fix
sfc-gh-ext-simba-jy Nov 26, 2024
d1312a8
merge
sfc-gh-ext-simba-jy Nov 26, 2024
24af0a6
testing
sfc-gh-ext-simba-jy Nov 26, 2024
c5be612
testing
sfc-gh-ext-simba-jy Nov 26, 2024
b613860
fix
sfc-gh-ext-simba-jy Nov 26, 2024
3bcbb91
refactor
sfc-gh-ext-simba-jy Nov 26, 2024
f15b3a3
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Nov 27, 2024
77278da
update
sfc-gh-ext-simba-jy Dec 2, 2024
2488367
Merge branch 'SNOW-715551' of https://github.com/snowflakedb/libsnowf…
sfc-gh-ext-simba-jy Dec 2, 2024
38f0619
move urlSamePrefix function to snowflake util
sfc-gh-ext-simba-jy Dec 3, 2024
1f178ec
remove testing from unit_sfurl
sfc-gh-ext-simba-jy Dec 3, 2024
6da2082
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Dec 4, 2024
c40efaa
Merge branch 'master' into SNOW-715551
sfc-gh-ext-simba-jy Dec 5, 2024
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
13 changes: 11 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ set(SOURCE_FILES
lib/basic_types.c
lib/error.h
lib/error.c
lib/snowflake_util.h
lib/client_int.h
lib/chunk_downloader.h
lib/chunk_downloader.c
Expand Down Expand Up @@ -164,6 +165,7 @@ set (SOURCE_FILES_PUT_GET
cpp/util/Proxy.cpp
cpp/util/ThreadPool.hpp
cpp/util/SnowflakeCommon.hpp
cpp/util/entities.cpp
cpp/crypto/CryptoTypes.hpp
cpp/crypto/Cryptor.hpp
cpp/crypto/CipherContext.hpp
Expand Down Expand Up @@ -196,9 +198,9 @@ set (SOURCE_FILES_PUT_GET
include/snowflake/ITransferResult.hpp
include/snowflake/PutGetParseResponse.hpp
include/snowflake/SnowflakeTransferException.hpp
include/snowflake/IJwt.hpp
include/snowflake/IBase64.hpp
include/snowflake/Proxy.hpp
include/snowflake/entities.hpp
)

set(SOURCE_FILES_CPP_WRAPPER
Expand All @@ -213,6 +215,9 @@ set(SOURCE_FILES_CPP_WRAPPER
include/snowflake/SFURL.hpp
include/snowflake/CurlDesc.hpp
include/snowflake/CurlDescPool.hpp
include/snowflake/IJwt.hpp
include/snowflake/IAuth.hpp
cpp/lib/SnowflakeUtil.cpp
cpp/lib/Exceptions.cpp
cpp/lib/Connection.cpp
cpp/lib/Statement.cpp
Expand All @@ -234,7 +239,8 @@ set(SOURCE_FILES_CPP_WRAPPER
cpp/lib/ResultSetJson.cpp
cpp/lib/ResultSetJson.hpp
cpp/lib/Authenticator.cpp
cpp/lib/Authenticator.hpp
cpp/lib/Authenticator.hpp
cpp/lib/IAuth.cpp
cpp/jwt/jwtWrapper.cpp
cpp/util/SnowflakeCommon.cpp
cpp/util/SFURL.cpp
Expand Down Expand Up @@ -406,6 +412,7 @@ if (LINUX)
deps-build/${PLATFORM}/${CMAKE_BUILD_TYPE}/azure/include
deps-build/${PLATFORM}/${CMAKE_BUILD_TYPE}/cmocka/include
deps-build/${PLATFORM}/${CMAKE_BUILD_TYPE}/uuid/include
deps-build/${PLATFORM}/${CMAKE_BUILD_TYPE}/picojson/include
include
lib)
endif()
Expand All @@ -421,6 +428,7 @@ if (APPLE)
deps-build/${PLATFORM}/${CMAKE_BUILD_TYPE}/aws/include
deps-build/${PLATFORM}/${CMAKE_BUILD_TYPE}/azure/include
deps-build/${PLATFORM}/${CMAKE_BUILD_TYPE}/cmocka/include
deps-build/${PLATFORM}/${CMAKE_BUILD_TYPE}/picojson/include
include
lib)
endif()
Expand All @@ -435,6 +443,7 @@ if (WIN32)
deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/aws/include
deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/azure/include
deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/cmocka/include
deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/picojson/include
include
lib)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
Expand Down
Loading