Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: allow user sign in with SSO after license expired (#5075)
boojack0cb943242bd3
diff --git a/backend/api/v1/auth_service.go b/backend/api/v1/auth_service.goindex c0f51c07a1..bf2698453a 100644--- a/backend/api/v1/auth_service.go+++ b/backend/api/v1/auth_service.go@@ -705,6 +705,9 @@ func (s *AuthService) getOrCreateUserWithIDP(ctx context.Context, request *v1pb.var user *store.UserMessageif len(users) == 0 {+ if !s.licenseService.IsFeatureEnabled(api.FeatureSSO) {+ return nil, status.Errorf(codes.PermissionDenied, "SSO is not available in your license")+ }// Create new user from identity provider.password, err := common.RandomString(20)if err != nil {diff --git a/frontend/src/views/auth/Signin.vue b/frontend/src/views/auth/Signin.vueindex 7dbfea7926..37d6da1298 100644--- a/frontend/src/views/auth/Signin.vue+++ b/frontend/src/views/auth/Signin.vue@@ -123,12 +123,7 @@<buttontype="button"class="btn-normal flex justify-center w-full h-10 mb-2 tooltip-wrapper"- :disabled="!hasSSOFeature"- @click.prevent="- () => {- trySigninWithIdentityProvider(identityProvider);- }- "+ @click.prevent="trySigninWithIdentityProvider(identityProvider)"><span class="text-center align-middle">{{@@ -150,7 +145,6 @@ import { useRouter } from "vue-router";import { storeToRefs } from "pinia";import { isValidEmail, openWindowForSSO } from "@/utils";import {- featureToRef,useActuatorStore,useAuthStore,useIdentityProviderStore,@@ -175,7 +169,6 @@ const state = reactive<LocalState>({showPassword: false,});const { isDemo, disallowSignup } = storeToRefs(actuatorStore);-const hasSSOFeature = featureToRef("bb.feature.sso");const identityProviderList = computed(() => identityProviderStore.identityProviderList