diff --git a/Snowflake.Data/Core/Authenticator/IAuthenticator.cs b/Snowflake.Data/Core/Authenticator/IAuthenticator.cs
index 446085fec..150551f91 100644
--- a/Snowflake.Data/Core/Authenticator/IAuthenticator.cs
+++ b/Snowflake.Data/Core/Authenticator/IAuthenticator.cs
@@ -96,14 +96,14 @@ protected void Login()
}
///
- /// Specialized authenticator data to add to the login request.
+ /// Specialized authenticator data to add to the login request.
///
/// The login request data to update.
protected abstract void SetSpecializedAuthenticatorData(ref LoginRequestData data);
///
/// Builds a simple login request. Each authenticator will fill the Data part with their
- /// specialized information. The common Data attributes are already filled (clientAppId,
+ /// specialized information. The common Data attributes are already filled (clientAppId,
/// ClienAppVersion...).
///
/// A login request to send to the server.
@@ -187,9 +187,8 @@ internal static IAuthenticator GetAuthenticator(SFSession session)
return new OAuthAuthenticator(session);
}
- // Okta would provide a url of form: https://xxxxxx.okta.com or https://xxxxxx.oktapreview.com
- else if ((type.EndsWith("okta.com") || type.EndsWith("oktapreview.com") )
- && type.StartsWith("https://"))
+ // Okta would provide a url of form: https://xxxxxx.okta.com or https://xxxxxx.oktapreview.com or https://vanity.url/snowflake/okta
+ else if (type.Contains("okta") && type.StartsWith("https://"))
{
return new OktaAuthenticator(session, type);
}