Skip to content

Commit

Permalink
SNOW-1206259 Handle OKTA Auth invalid responses more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mhofman committed Mar 6, 2024
1 parent ee843a4 commit e829441
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 103 deletions.
16 changes: 16 additions & 0 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2153,6 +2153,22 @@ public void TestAsyncOktaConnectionUntilMaxTimeout()
}
}
}

[Test]
[Ignore("This test requires established dev Okta SSO and credentials matching Snowflake user")]
public void TestNativeOktaSuccess()
{
var oktaUrl = "https://***.okta.com/";
var oktaUser = "***";
var oktaPassword = "***";
using (IDbConnection conn = new SnowflakeDbConnection())
{
conn.ConnectionString = ConnectionStringWithoutAuth +
$";authenticator={oktaUrl};user={oktaUser};password={oktaPassword};";
conn.Open();
Assert.AreEqual(ConnectionState.Open, conn.State);
}
}
}
}

Expand Down
Loading

0 comments on commit e829441

Please sign in to comment.