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,"sources":["webpack:///./src/pages/AuthenticationBackendEditPage.tsx"],"names":["withParams","withLocation","backendId","params","initialStepKey","location","query","useState","authBackend","setAuthBackend","useEffect","AuthenticationDomain","load","then","response","backend","authService","getAuthServicePlugin","config","type","BackendEdit","editComponent","authenticationBackend"],"mappings":"6qCAwDeA,sBAAWC,aAtBY,SAAC,GAA8E,IAAlEC,EAAkE,EAA5EC,OAAUD,UAAkCE,EAAgC,EAArDC,SAAYC,MAASF,eAAgC,IAC7EG,qBAD6E,GAC5GC,EAD4G,KAC/FC,EAD+F,KAOnH,GAJAC,qBAAU,WACRC,IAAqBC,KAAKV,GAAWW,MAAK,SAACC,GAAD,OAAcL,EAAeK,EAASC,cAC/E,CAACb,KAECM,EACH,OAAO,gBAAC,KAAD,MAGT,IAAMQ,EAAcC,YAAqBT,EAAYU,OAAOC,MAE5D,IAAKH,EACH,OAAO,2FAAuDR,EAAYU,OAAOC,KAA1E,MAd0G,IAiB5FC,EAAgBJ,EAA/BK,cAER,OAAO,gBAACD,EAAD,CAAaE,sBAAuBd,EAAaJ,eAAgBA","file":"57e33c6c-83.11b9f72925818240e61d.js","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 { useState, useEffect } from 'react';\n\nimport withParams from 'routing/withParams';\nimport withLocation, { Location } from 'routing/withLocation';\nimport {} from 'components/authentication/bindings'; // Bind all authentication plugins\nimport { getAuthServicePlugin } from 'util/AuthenticationService';\nimport { Spinner } from 'components/common';\nimport AuthenticationDomain from 'domainActions/authentication/AuthenticationDomain';\nimport AuthenticationBackend from 'logic/authentication/AuthenticationBackend';\n\ntype Props = {\n params: {\n backendId: string,\n },\n location: Location,\n};\n\nconst AuthenticationBackendEditPage = ({ params: { backendId }, location: { query: { initialStepKey } } }: Props) => {\n const [authBackend, setAuthBackend] = useState();\n\n useEffect(() => {\n AuthenticationDomain.load(backendId).then((response) => setAuthBackend(response.backend));\n }, [backendId]);\n\n if (!authBackend) {\n return ;\n }\n\n const authService = getAuthServicePlugin(authBackend.config.type);\n\n if (!authService) {\n return <>{`No authentication service plugin configured for \"${authBackend.config.type}\"`}>;\n }\n\n const { editComponent: BackendEdit } = authService;\n\n return ;\n};\n\nexport default withParams(withLocation(AuthenticationBackendEditPage));\n"],"sourceRoot":""}