n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.37 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.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./users.store-legacy-OKuN0qAC.js","./_baseOrderBy-legacy-PsQY_Pvh.js"],(function(e,n){var a,l,i,t,o,s,d,c,u,r,g,f,b,v,p,y,E,L;return{setters:[function(e){a=e.Ft,l=e.S},function(e){i=e.Gs,t=e.Hs,o=e.Js,s=e.Ks,d=e.Us,c=e.Ws,u=e.cc,r=e.dc,g=e.lc,f=e.ol,b=e.qs,v=e.sc,p=e.uc},function(e){y=e.j,E=e.r}],execute:function(){try{n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(C=(new n.Error).stack)&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[C]="4e1f63c9-04d1-4356-a14c-c4e1aea0ad43",n._sentryDebugIdIdentifier="sentry-dbid-4e1f63c9-04d1-4356-a14c-c4e1aea0ad43")}catch(n){}var n,C;e("t",L={SAML:"saml",OIDC:"oidc"}),e("n",y("sso",(()=>{const e=E(),n=a(void 0),y=a(void 0),C=l((()=>m.value&&A.value&&h.value||U.value&&D.value&&I.value)),w=a({loginLabel:"",loginEnabled:!1}),S=a(),m=l({get:()=>w.value.loginEnabled,set:e=>{w.value.loginEnabled=e}}),A=a(!1),h=l((()=>n.value===f.Saml)),x=a({loginUrl:"",loginEnabled:!1,callbackUrl:""}),O=a(),D=a(!1),U=l({get:()=>x.value.loginEnabled,set:e=>{x.value.loginEnabled=e}}),I=l((()=>n.value===f.Oidc)),_=a({loginLabel:"",loginEnabled:!1}),T=a(!1),j=l((()=>_.value.loginEnabled)),k=l((()=>_.value.loginLabel));return{showSsoLoginButton:C,getSSORedirectUrl:async n=>await i(e.restApiContext,n),initialize:e=>{n.value=e.authenticationMethod,T.value=e.features.ldap,e.config.ldap&&(_.value.loginEnabled=e.config.ldap.loginEnabled,_.value.loginLabel=e.config.ldap.loginLabel),A.value=e.features.saml,e.config.saml&&(w.value.loginEnabled=e.config.saml.loginEnabled,w.value.loginLabel=e.config.saml.loginLabel),D.value=e.features.oidc,e.config.oidc&&(x.value.loginEnabled=e.config.oidc.loginEnabled,x.value.loginUrl=e.config.oidc.loginUrl||"",x.value.callbackUrl=e.config.oidc.callbackUrl||"")},selectedAuthProtocol:y,initializeSelectedProtocol:()=>{y.value||(y.value=I.value?L.OIDC:L.SAML)},saml:w,samlConfig:S,isSamlLoginEnabled:m,isEnterpriseSamlEnabled:A,isDefaultAuthenticationSaml:h,getSamlMetadata:async()=>await c(e.restApiContext),getSamlConfig:async()=>{const n=await d(e.restApiContext);return S.value=n,w.value.loginEnabled=n.loginEnabled,w.value.loginLabel=n.loginLabel,n},saveSamlConfig:async n=>await b(e.restApiContext,n),testSamlConfig:async n=>await o(e.restApiContext,n),oidc:x,oidcConfig:O,isOidcLoginEnabled:U,isEnterpriseOidcEnabled:D,isDefaultAuthenticationOidc:I,getOidcConfig:async()=>{const n=await t(e.restApiContext);return O.value=n,n},saveOidcConfig:async n=>{const a=await s(e.restApiContext,n);return O.value=a,a},ldap:_,isLdapLoginEnabled:j,isEnterpriseLdapEnabled:T,ldapLoginLabel:k,getLdapConfig:async()=>{const e=E();return await v(e.restApiContext)},getLdapSynchronizations:async e=>{const n=E();return await u(n.restApiContext,e)},testLdapConnection:async()=>{const e=E();return await p(e.restApiContext)},updateLdapConfig:async e=>{const n=E();return await r(n.restApiContext,e)},runLdapSync:async e=>{const n=E();return await g(n.restApiContext,e)}}})))}}}));
//# sourceMappingURL=sso.store-legacy-VUs4UkgQ.js.map