feat(editor): SSO onboarding (#5756)

* feat(editor): SSO onboarding

* fix(editor): add SAML onboarding page

* fix(editor): submit user name on SAML onboarding
This commit is contained in:
Csaba Tuncsik
2023-04-04 18:18:16 +02:00
committed by GitHub
parent 2b06673b2e
commit 04f8600bbd
5 changed files with 86 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ import { useSSOStore } from './stores/sso';
import SettingsUsageAndPlanVue from './views/SettingsUsageAndPlan.vue';
import SettingsSso from './views/SettingsSso.vue';
import SignoutView from '@/views/SignoutView.vue';
import SamlOnboarding from '@/views/SamlOnboarding.vue';
Vue.use(Router);
@@ -670,6 +671,34 @@ export const routes = [
},
],
},
{
path: '/saml/onboarding',
name: VIEWS.SAML_ONBOARDING,
components: {
default: SamlOnboarding,
},
meta: {
telemetry: {
pageCategory: 'auth',
},
permissions: {
allow: {
loginStatus: [LOGIN_STATUS.LoggedIn],
},
deny: {
shouldDeny: () => {
const settingsStore = useSettingsStore();
const ssoStore = useSSOStore();
return (
!ssoStore.isEnterpriseSamlEnabled ||
settingsStore.isCloudDeployment ||
settingsStore.isDesktopDeployment
);
},
},
},
},
},
{
path: '*',
name: VIEWS.NOT_FOUND,