fix: Do not show actively disabled auth providers in self-hosted install (#4794)
* fix: Do not show actively disabled auth providers in self-hosted installation * self review * Refactor for easier mocking
This commit is contained in:
@@ -72,7 +72,7 @@ async function teamProvisioner({
|
||||
};
|
||||
} else if (teamId) {
|
||||
// The user is attempting to log into a team with an unfamiliar SSO provider
|
||||
if (env.DEPLOYMENT === "hosted") {
|
||||
if (env.isCloudHosted()) {
|
||||
throw InvalidAuthenticationError();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user