Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
{"version":3,"file":"b6fe2bb5-7360.02845262def18c34af66.js","mappings":"+XAiCMA,EAAa,SAACC,EAAyDC,GAC3E,IAAMC,EAAW,gCAEjB,GAAIF,EAAe,CACjB,IAAMG,EAAeC,EAAAA,EAAAA,qBAAiCJ,EAAcK,MAAO,IAE3E,OAAIJ,EACF,UAAUC,EAAV,cAAwBC,GAGnB,gCAAGD,EAAH,MAAe,yBAAIC,IAG5B,OAAOD,GA+CT,SAAeI,EAAAA,EAAAA,IAlCY,WACzB,OAA0DC,EAAAA,EAAAA,KAAlDC,EAAR,EAAQA,gBAAiBR,EAAzB,EAAyBA,cAMzB,OAjBmC,SAACQ,EAAiBR,EAAeS,IACpEC,EAAAA,EAAAA,YAAU,WACJF,IAAoBR,GAAmC,IAAlBS,EACvCE,EAAAA,EAAAA,KAAaC,EAAAA,GAAAA,OAAAA,eAAAA,SAAAA,QACJJ,IAAoBR,GAAiBS,GAC9CE,EAAAA,EAAAA,KAAaC,EAAAA,GAAAA,OAAAA,eAAAA,SAAAA,YAEd,CAACJ,EAAiBR,EAAeS,IAQpCI,CAA6BL,EAAiBR,EAJ9C,EAAwCS,eAMnCD,EAKH,gBAAC,KAAD,CAAeH,MAAON,EAAWC,GAAe,IAC9C,gCACE,gBAAC,KAAD,CAAYK,MAAON,EAAWC,GAClBc,WACE,gBAAC,IAAD,CAAoBd,cAAeA,EACfQ,gBAAiBA,KAEjD,oGACA,+DAAsC,gBAAC,IAAD,CAAmBO,KAAMC,EAAAA,EAAAA,MAAAA,YACNC,KAAK,kBAD9D,KAGA,gBAAC,IAAD,OAGDT,GAAmBR,GAClB,gBAAC,IAAD,CAAgBkB,sBAAuBlB,MAnBtC,gBAAC,KAAD","sources":["webpack://graylog-web-interface/./src/pages/AuthenticationPage.tsx"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport { useEffect } from 'react';\nimport {} from 'components/authentication/bindings'; // Bind all authentication plugins\n\nimport AuthenticationOverviewLinks from 'components/authentication/AuthenticationOverviewLinks';\nimport DocsHelper from 'util/DocsHelper';\nimport withParams from 'routing/withParams';\nimport StringUtils from 'util/StringUtils';\nimport type AuthenticationBackend from 'logic/authentication/AuthenticationBackend';\nimport history from 'util/History';\nimport Routes from 'routing/Routes';\nimport useActiveBackend from 'components/authentication/useActiveBackend';\nimport { PageHeader, Spinner, DocumentTitle } from 'components/common';\nimport BackendActionLinks from 'components/authentication/BackendActionLinks';\nimport BackendDetails from 'components/authentication/BackendDetails';\nimport DocumentationLink from 'components/support/DocumentationLink';\n\nconst _pageTitle = (activeBackend: AuthenticationBackend | undefined | null, returnString?: boolean) => {\n const pageName = 'Active Authentication Service';\n\n if (activeBackend) {\n const backendTitle = StringUtils.truncateWithEllipses(activeBackend.title, 30);\n\n if (returnString) {\n return `${pageName} - ${backendTitle}`;\n }\n\n return <>{pageName} - {backendTitle}>;\n }\n\n return pageName;\n};\n\nconst useRedirectToAppropriatePage = (finishedLoading, activeBackend, backendsTotal) => {\n useEffect(() => {\n if (finishedLoading && !activeBackend && backendsTotal === 0) {\n history.push(Routes.SYSTEM.AUTHENTICATION.BACKENDS.CREATE);\n } else if (finishedLoading && !activeBackend && backendsTotal) {\n history.push(Routes.SYSTEM.AUTHENTICATION.BACKENDS.OVERVIEW);\n }\n }, [finishedLoading, activeBackend, backendsTotal]);\n};\n\nconst AuthenticationPage = () => {\n const { finishedLoading, activeBackend, backendsTotal } = useActiveBackend();\n\n // Only display this page if there is an active backend\n // Otherwise redirect to correct page\n useRedirectToAppropriatePage(finishedLoading, activeBackend, backendsTotal);\n\n if (!finishedLoading) {\n return ;\n }\n\n return (\n \n <>\n \n )}>\n Configure Graylog's authentication services of this Graylog cluster.\n Read more authentication in the .\n \n \n \n\n {finishedLoading && activeBackend && (\n \n )}\n >\n \n );\n};\n\nexport default withParams(AuthenticationPage);\n"],"names":["_pageTitle","activeBackend","returnString","pageName","backendTitle","StringUtils","title","withParams","useActiveBackend","finishedLoading","backendsTotal","useEffect","history","Routes","useRedirectToAppropriatePage","subactions","page","DocsHelper","text","authenticationBackend"],"sourceRoot":""}