-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move credential manager files to core folder
- Loading branch information
1 parent
465da80
commit 94bce01
Showing
8 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ namespace Snowflake.Data.Tests.IntegrationTests | |
using Snowflake.Data.Tests.Mock; | ||
using System.Runtime.InteropServices; | ||
using System.Net.Http; | ||
using Snowflake.Data.Core.CredentialManager; | ||
|
||
[TestFixture] | ||
class SFConnectionIT : SFBaseTest | ||
|
@@ -1053,16 +1054,16 @@ public void TestSSOConnectionWithInvalidCachedToken() | |
= ConnectionStringWithoutAuth | ||
+ ";authenticator=externalbrowser;[email protected];allow_sso_token_caching=true;"; | ||
|
||
var key = SnowflakeCredentialManagerFactory.BuildCredentialKey(testConfig.host, testConfig.user, TokenType.IdToken); | ||
var credentialManager = SnowflakeCredentialManagerInMemoryImpl.Instance; | ||
var key = SFCredentialManagerFactory.BuildCredentialKey(testConfig.host, testConfig.user, TokenType.IdToken); | ||
var credentialManager = SFCredentialManagerInMemoryImpl.Instance; | ||
credentialManager.SaveCredentials(key, "wrongToken"); | ||
|
||
SnowflakeCredentialManagerFactory.SetCredentialManager(credentialManager); | ||
SFCredentialManagerFactory.SetCredentialManager(credentialManager); | ||
|
||
conn.Open(); | ||
Assert.AreEqual(ConnectionState.Open, conn.State); | ||
|
||
SnowflakeCredentialManagerFactory.UseDefaultCredentialManager(); | ||
SFCredentialManagerFactory.UseDefaultCredentialManager(); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters