All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.b6fe2bb5-5523.a8c9bcfe51f583d85144.js.map Maven / Gradle / Ivy

{"version":3,"file":"b6fe2bb5-5523.a8c9bcfe51f583d85144.js","mappings":"+uCAyDA,SAAeA,EAAAA,EAAAA,IAAWC,EAAAA,EAAAA,IAtBY,SAAC,GAA8E,IAAlEC,EAAkE,EAA5EC,OAAUD,UAAkCE,EAAgC,EAArDC,SAAYC,MAASF,eACnF,KAAsCG,EAAAA,EAAAA,YAAtC,GAAOC,EAAP,KAAoBC,EAApB,KAMA,IAJAC,EAAAA,EAAAA,YAAU,WACRC,EAAAA,EAAAA,KAA0BT,GAAWU,MAAK,SAACC,GAAD,OAAcJ,EAAeI,EAASC,cAC/E,CAACZ,KAECM,EACH,OAAO,gBAAC,KAAD,MAGT,IAAMO,GAAcC,EAAAA,EAAAA,IAAqBR,EAAYS,OAAOC,MAE5D,IAAKH,EACH,OAAO,2FAAuDP,EAAYS,OAAOC,KAA1E,MAGT,IAAuBC,EAAgBJ,EAA/BK,cAER,OAAO,gBAACD,EAAD,CAAaE,sBAAuBb,EAAaJ,eAAgBA","sources":["webpack://graylog-web-interface/./src/pages/AuthenticationBackendEditPage.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 { useState, useEffect } from 'react';\n\nimport withParams from 'routing/withParams';\nimport type { Location } from 'routing/withLocation';\nimport withLocation 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 type 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"],"names":["withParams","withLocation","backendId","params","initialStepKey","location","query","useState","authBackend","setAuthBackend","useEffect","AuthenticationDomain","then","response","backend","authService","getAuthServicePlugin","config","type","BackendEdit","editComponent","authenticationBackend"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy