n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.42 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./useRootStore-legacy-CC08el-l.js","./settings.store-legacy-I6rZOvfF.js"],(function(e,n){var a,t,l,i,o,s,d,c,u,g,r,b,f,v,p,y,E,C,L;return{setters:[function(e){a=e.Ft,t=e.S},function(e){l=e.T,i=e.t},function(e){o=e.B,s=e.Cn,d=e.F,c=e.I,u=e.L,g=e.P,r=e.R,b=e.V,f=e._t,v=e.bt,p=e.vt,y=e.xt,E=e.yt,C=e.z}],execute:function(){try{n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(w=(new n.Error).stack)&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[w]="c9b1dcdf-58ab-4634-bcd2-f27965e18e93",n._sentryDebugIdIdentifier="sentry-dbid-c9b1dcdf-58ab-4634-bcd2-f27965e18e93")}catch(n){}var n,w;e("t",L={SAML:"saml",OIDC:"oidc"}),e("n",l("sso",(()=>{const e=i(),n=a(void 0),l=a(void 0),w=t((()=>m.value&&x.value&&h.value||U.value&&I.value&&T.value)),S=a({loginLabel:"",loginEnabled:!1}),A=a(),m=t({get:()=>S.value.loginEnabled,set:e=>{S.value.loginEnabled=e}}),x=a(!1),h=t((()=>n.value===s.Saml)),O=a({loginUrl:"",loginEnabled:!1,callbackUrl:""}),D=a(),I=a(!1),U=t({get:()=>O.value.loginEnabled,set:e=>{O.value.loginEnabled=e}}),T=t((()=>n.value===s.Oidc)),_=a({loginLabel:"",loginEnabled:!1}),R=a(!1),k=t((()=>_.value.loginEnabled)),z=t((()=>_.value.loginLabel));return{showSsoLoginButton:w,getSSORedirectUrl:async n=>await u(e.restApiContext,n),initialize:e=>{n.value=e.authenticationMethod,R.value=e.features.ldap,e.config.ldap&&(_.value.loginEnabled=e.config.ldap.loginEnabled,_.value.loginLabel=e.config.ldap.loginLabel),x.value=e.features.saml,e.config.saml&&(S.value.loginEnabled=e.config.saml.loginEnabled,S.value.loginLabel=e.config.saml.loginLabel),I.value=e.features.oidc,e.config.oidc&&(O.value.loginEnabled=e.config.oidc.loginEnabled,O.value.loginUrl=e.config.oidc.loginUrl||"",O.value.callbackUrl=e.config.oidc.callbackUrl||"")},selectedAuthProtocol:l,initializeSelectedProtocol:()=>{l.value||(l.value=T.value?L.OIDC:L.SAML)},saml:S,samlConfig:A,isSamlLoginEnabled:m,isEnterpriseSamlEnabled:x,isDefaultAuthenticationSaml:h,getSamlMetadata:async()=>await c(e.restApiContext),getSamlConfig:async()=>{const n=await d(e.restApiContext);return A.value=n,S.value.loginEnabled=n.loginEnabled,S.value.loginLabel=n.loginLabel,n},saveSamlConfig:async n=>await C(e.restApiContext,n),testSamlConfig:async n=>await b(e.restApiContext,n),oidc:O,oidcConfig:D,isOidcLoginEnabled:U,isEnterpriseOidcEnabled:I,isDefaultAuthenticationOidc:T,getOidcConfig:async()=>{const n=await g(e.restApiContext);return D.value=n,n},saveOidcConfig:async n=>{const a=await r(e.restApiContext,n);return D.value=a,a},testOidcConfig:async()=>await o(e.restApiContext),ldap:_,isLdapLoginEnabled:k,isEnterpriseLdapEnabled:R,ldapLoginLabel:z,getLdapConfig:async()=>{const e=i();return await f(e.restApiContext)},getLdapSynchronizations:async e=>{const n=i();return await p(n.restApiContext,e)},testLdapConnection:async()=>{const e=i();return await v(e.restApiContext)},updateLdapConfig:async e=>{const n=i();return await y(n.restApiContext,e)},runLdapSync:async e=>{const n=i();return await E(n.restApiContext,e)}}})))}}}));
//# sourceMappingURL=sso.store-legacy-fTkDsmnz.js.map