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

web-interface.assets.b6fe2bb5-6698.36db45a4e1b1b24f412c.js.map Maven / Gradle / Ivy

{"version":3,"file":"b6fe2bb5-6698.36db45a4e1b1b24f412c.js","mappings":"kOAsCA,QAhBoC,kBAClC,gBAAC,KAAD,CAAeA,UAAU,cACvB,gBAAC,IAAD,CAAeC,GAAIC,EAAAA,GAAAA,OAAAA,eAAAA,SAAAA,UACjB,gBAAC,KAAD,CAAQC,QAAQ,QAAhB,4BAIF,gBAAC,IAAD,CAAeF,GAAIC,EAAAA,GAAAA,OAAAA,eAAAA,eAAAA,MACjB,gBAAC,KAAD,CAAQC,QAAQ,OACRC,KAAK,UADb,sB,wGCEN,QAViC,kBAC/B,gBAAC,KAAD,KACE,gBAAC,IAAD,CAAeH,GAAIC,EAAAA,GAAAA,OAAAA,eAAAA,eAAAA,MACjB,gBAAC,KAAD,CAAQC,QAAQ,UACRC,KAAK,UADb,2B,kHCKAC,EAASC,EAAAA,QAAAA,IAAAA,WAAH,mEAAGA,CAAH,8GAUCC,EAAWD,EAAAA,QAAAA,GAAAA,WAAH,qEAAGA,CAAH,wCAKfE,GAAiBF,EAAAA,EAAAA,SAAOG,EAAAA,GAAV,sFAAGH,EAAgB,gBAAGI,EAAH,EAAGA,MAAH,OAAeC,EAAAA,EAAAA,KAAd,CAAD,mCAExBD,EAAME,MAAMC,KAAKC,OAG1BC,EAAmB,SAAC,GAAD,IAAGC,EAAH,EAAGA,SAAUC,EAAb,EAAaA,MAAb,IAAoBC,YAAAA,OAApB,SAAyCC,EAAzC,EAAyCA,cAAenB,EAAxD,EAAwDA,UAAxD,OACvB,gBAAC,KAAD,CAAKA,UAAS,kBAAaA,IACzB,gBAAC,KAAD,CAAKoB,GAAI,IACP,gBAACf,EAAD,KACE,gBAACE,EAAD,KACGU,EACAC,GAAe,gBAACV,EAAD,CAAgBa,KAAK,GAAGC,MAAO,KAEhDH,GAEFH,KAKPD,EAAiBQ,aAAe,CAC9Bv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AD,OAClD,4EAIA,gDACoB,IAClB,gBAACC,EAAA,EAAD,CAAmBC,KAAMC,EAAAA,EAAAA,MAAAA,eACN5E,KAAK,mBAG1B,gBAAC6E,EAAA,EAAD,OAIF,gBAAC,EAAD","sources":["webpack://graylog-web-interface/./src/components/authentication/AuthenticationOverviewLinks.tsx","webpack://graylog-web-interface/./src/components/authentication/AuthenticatorActionLinks.tsx","webpack://graylog-web-interface/./src/components/common/Section/SectionComponent.tsx","webpack://graylog-web-interface/./src/components/common/Section/SectionGrid.tsx","webpack://graylog-web-interface/./src/actions/authentication/HTTPHeaderAuthConfigActions.ts","webpack://graylog-web-interface/./src/logic/authentication/HTTPHeaderAuthConfig.ts","webpack://graylog-web-interface/./src/stores/authentication/HTTPHeaderAuthConfigStore.ts","webpack://graylog-web-interface/./src/domainActions/authentication/HTTPHeaderAuthConfigDomain.ts","webpack://graylog-web-interface/./src/components/authentication/AuthenticatorsEdit/HTTPHeaderAuthConfigSection.tsx","webpack://graylog-web-interface/./src/components/authentication/AuthenticatorsEdit/AuthenticatorsEdit.tsx","webpack://graylog-web-interface/./src/components/authentication/AuthenticatorsEdit/index.tsx","webpack://graylog-web-interface/./src/pages/AuthenticatorsEditPage.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';\n\nimport Routes from 'routing/Routes';\nimport { LinkContainer } from 'components/common/router';\nimport { ButtonToolbar, Button } from 'components/bootstrap';\n\nconst AuthenticationOverviewLinks = () => (\n  \n    \n      \n    \n    \n      \n    \n  \n);\n\nexport default AuthenticationOverviewLinks;\n","/*\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';\n\nimport Routes from 'routing/Routes';\nimport { LinkContainer } from 'components/common/router';\nimport { ButtonToolbar, Button } from 'components/bootstrap';\n\nconst AuthenticatorActionLinks = () => (\n  \n    \n      \n    \n  \n);\nexport default AuthenticatorActionLinks;\n","/*\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 styled, { css } from 'styled-components';\n\nimport Spinner from 'components/common/Spinner';\nimport { Row, Col } from 'components/bootstrap';\n\ntype Props = {\n  children: React.ReactNode,\n  title: string,\n  showLoading?: boolean,\n  headerActions?: React.ReactElement,\n  className?: string,\n};\n\nconst Header = styled.div`\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-start;\n\n  *:not(:first-child) {\n    margin-left: 10px;\n  }\n`;\n\nexport const Headline = styled.h2`\n  margin-bottom: 15px;\n  display: inline;\n`;\n\nconst LoadingSpinner = styled(Spinner)(({ theme }) => css`\n  margin-left: 10px;\n  font-size: ${theme.fonts.size.h3};\n`);\n\nconst SectionComponent = ({ children, title, showLoading = false, headerActions, className }: Props) => (\n  \n    \n      
\n \n {title}\n {showLoading && }\n \n {headerActions}\n
\n {children}\n \n
\n);\n\nSectionComponent.defaultProps = {\n className: '',\n showLoading: false,\n headerActions: undefined,\n};\n\nexport default SectionComponent;\n","/*\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 styled, { css } from 'styled-components';\n\nconst SectionGrid = styled.div<{ $columns?: string } >(({ $columns, theme }) => css`\n display: grid;\n grid-template-columns: ${$columns ?? '1fr 1fr'};\n grid-column-gap: 40px;\n\n @media (max-width: ${theme.breakpoints.max.md}) {\n grid-template-columns: 1fr;\n }\n`);\n\nexport default SectionGrid;\n","/*\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 Reflux from 'reflux';\n\nimport type { RefluxActions } from 'stores/StoreTypes';\nimport { singletonActions } from 'logic/singleton';\nimport type { HTTPHeaderAuthConfigJSON } from 'logic/authentication/HTTPHeaderAuthConfig';\nimport type HTTPHeaderAuthConfig from 'logic/authentication/HTTPHeaderAuthConfig';\n\nexport type ActionsType = {\n load: () => Promise,\n update: (payload: HTTPHeaderAuthConfigJSON) => Promise,\n};\n\ntype HTTPHeaderAuthConfigActionsType = RefluxActions;\n\nconst HTTPHeaderAuthConfigActions: HTTPHeaderAuthConfigActionsType = singletonActions(\n 'HTTPHeaderAuthConfig',\n () => Reflux.createActions({\n load: { asyncResult: true },\n update: { asyncResult: true },\n }),\n);\n\nexport default HTTPHeaderAuthConfigActions;\n","/*\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 Immutable from 'immutable';\nimport type { $PropertyType } from 'utility-types';\n\ntype InternalState = {\n enabled: boolean,\n usernameHeader: string,\n};\n\nexport type HTTPHeaderAuthConfigJSON = {\n enabled: boolean,\n username_header: string,\n};\n\nexport default class HTTPHeaderAuthConfig {\n _value: InternalState;\n\n constructor(\n usernameHeader: $PropertyType,\n enabled: $PropertyType,\n ) {\n this._value = { usernameHeader, enabled };\n }\n\n get usernameHeader() {\n return this._value.usernameHeader;\n }\n\n get enabled() {\n return this._value.enabled;\n }\n\n toBuilder() {\n const {\n usernameHeader,\n enabled,\n } = this._value;\n\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n return new Builder(Immutable.Map({ usernameHeader, enabled }));\n }\n\n static create(\n usernameHeader: $PropertyType,\n enabled: $PropertyType,\n ) {\n return new HTTPHeaderAuthConfig(usernameHeader, enabled);\n }\n\n toJSON() {\n const { usernameHeader, enabled } = this._value;\n\n return {\n username_header: usernameHeader,\n enabled,\n };\n }\n\n static fromJSON(value: HTTPHeaderAuthConfigJSON) {\n const { username_header: usernameHeader, enabled } = value;\n\n return HTTPHeaderAuthConfig.create(usernameHeader, enabled);\n }\n\n static builder(): Builder {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n return new Builder();\n }\n}\n\ntype BuilderState = Immutable.Map;\n\nclass Builder {\n value: BuilderState;\n\n constructor(value: BuilderState = Immutable.Map()) {\n this.value = value;\n }\n\n usernameHeader(value: $PropertyType) {\n return new Builder(this.value.set('usernameHeader', value));\n }\n\n enabled(value: $PropertyType) {\n return new Builder(this.value.set('enabled', value));\n }\n\n build() {\n const { usernameHeader, enabled } = this.value.toObject();\n\n return new HTTPHeaderAuthConfig(usernameHeader, enabled);\n }\n}\n","/*\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 Reflux from 'reflux';\n\nimport HTTPHeaderAuthConfigActions from 'actions/authentication/HTTPHeaderAuthConfigActions';\nimport type { Store } from 'stores/StoreTypes';\nimport fetch from 'logic/rest/FetchProvider';\nimport ApiRoutes from 'routing/ApiRoutes';\nimport { qualifyUrl } from 'util/URLUtils';\nimport { singletonStore } from 'logic/singleton';\nimport type { HTTPHeaderAuthConfigJSON } from 'logic/authentication/HTTPHeaderAuthConfig';\nimport HTTPHeaderAuthConfig from 'logic/authentication/HTTPHeaderAuthConfig';\n\nconst HTTPHeaderAuthConfigStore: Store<{}> = singletonStore(\n 'HTTPHeaderAuthConfig',\n () => Reflux.createStore({\n listenables: [HTTPHeaderAuthConfigActions],\n\n load(): Promise {\n const url = qualifyUrl(ApiRoutes.HTTPHeaderAuthConfigController.load().url);\n const promise = fetch('GET', url).then(HTTPHeaderAuthConfig.fromJSON);\n\n HTTPHeaderAuthConfigActions.load.promise(promise);\n\n return promise;\n },\n\n update(payload: HTTPHeaderAuthConfigJSON): Promise {\n const url = qualifyUrl(ApiRoutes.HTTPHeaderAuthConfigController.update().url);\n const promise = fetch('PUT', url, payload).then(HTTPHeaderAuthConfig.fromJSON);\n\n HTTPHeaderAuthConfigActions.update.promise(promise);\n\n return promise;\n },\n }),\n);\n\nexport { HTTPHeaderAuthConfigActions, HTTPHeaderAuthConfigStore };\n","/*\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 { HTTPHeaderAuthConfigActions } from 'stores/authentication/HTTPHeaderAuthConfigStore';\n\nimport notifyingAction from '../notifyingAction';\n\nconst load = notifyingAction({\n action: HTTPHeaderAuthConfigActions.load,\n error: (error) => ({\n message: `Loading HTTP header authentication config failed with status: ${error}`,\n }),\n});\n\nconst update = notifyingAction({\n action: HTTPHeaderAuthConfigActions.update,\n success: () => ({\n message: 'Successfully updated HTTP header authentication config',\n }),\n error: (error) => ({\n message: `Updating HTTP header authentication config failed with status: ${error}`,\n }),\n});\n\nexport default {\n load,\n update,\n};\n","/*\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';\nimport { Formik, Form } from 'formik';\n\nimport Routes from 'routing/Routes';\nimport history from 'util/History';\nimport type HTTPHeaderAuthConfig from 'logic/authentication/HTTPHeaderAuthConfig';\nimport HTTPHeaderAuthConfigDomain from 'domainActions/authentication/HTTPHeaderAuthConfigDomain';\nimport { Input, Button, Col, Row, Alert } from 'components/bootstrap';\nimport { FormikFormGroup, ErrorAlert, Spinner, Icon } from 'components/common';\nimport SectionComponent from 'components/common/Section/SectionComponent';\n\nconst HTTPHeaderAuthConfigSection = () => {\n const [submitError, setSubmitError] = useState();\n const [loadedConfig, setLoadedConfig] = useState();\n const sectionTitle = 'Trusted Header Authentication';\n\n const _onSubmit = (data) => {\n setSubmitError(undefined);\n\n return HTTPHeaderAuthConfigDomain.update(data).then(() => {\n history.push(Routes.SYSTEM.AUTHENTICATION.AUTHENTICATORS.SHOW);\n }).catch((error) => {\n setSubmitError(error.additional?.res?.text);\n });\n };\n\n useEffect(() => {\n HTTPHeaderAuthConfigDomain.load().then(setLoadedConfig);\n }, []);\n\n if (!loadedConfig) {\n return (\n \n \n \n );\n }\n\n return (\n \n

This authenticator enables you to login a user, based on a HTTP header without further interaction.

\n \n {({ isSubmitting, isValid }) => (\n
\n \n \n \n \n \n \n \n Please configure the trusted_proxies setting in the Graylog server configuration file.\n \n \n \n {submitError}\n \n \n
\n \n
\n \n
\n \n )}\n
\n
\n );\n};\n\nexport default HTTPHeaderAuthConfigSection;\n","/*\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';\n\nimport SectionGrid from 'components/common/Section/SectionGrid';\n\nimport HTTPHeaderAuthConfigSection from './HTTPHeaderAuthConfigSection';\n\nconst AuthenticatorsDetails = () => (\n \n \n \n);\n\nexport default AuthenticatorsDetails;\n","/*\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 AuthenticatorsEdit from './AuthenticatorsEdit';\n\nexport default AuthenticatorsEdit;\n","/*\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 React from 'react';\n\nimport AuthenticationOverviewLinks from 'components/authentication/AuthenticationOverviewLinks';\nimport AuthenticatorActionLinks from 'components/authentication/AuthenticatorActionLinks';\nimport AuthenticatorsEdit from 'components/authentication/AuthenticatorsEdit';\nimport { PageHeader, DocumentTitle } from 'components/common';\nimport DocumentationLink from 'components/support/DocumentationLink';\nimport DocsHelper from 'util/DocsHelper';\n\nconst AuthenticatorsEditPage = () => (\n \n }>\n \n Configure the trusted header authentication.\n \n\n \n Learn more in the{' '}\n \n \n\n \n\n \n\n \n \n);\n\nexport default AuthenticatorsEditPage;\n"],"names":["className","to","Routes","bsStyle","type","Header","styled","Headline","LoadingSpinner","Spinner","theme","css","fonts","size","h3","SectionComponent","children","title","showLoading","headerActions","xs","text","delay","defaultProps","undefined","$columns","breakpoints","max","md","singletonActions","Reflux","load","asyncResult","update","HTTPHeaderAuthConfig","usernameHeader","enabled","this","_value","Builder","Immutable","username_header","value","create","set","toObject","singletonStore","listenables","HTTPHeaderAuthConfigActions","url","qualifyUrl","ApiRoutes","promise","fetch","then","fromJSON","payload","notifyingAction","action","error","message","success","useState","submitError","setSubmitError","loadedConfig","setLoadedConfig","sectionTitle","useEffect","HTTPHeaderAuthConfigDomain","Formik","onSubmit","data","history","additional","res","initialValues","toJSON","isSubmitting","isValid","Form","id","labelClassName","wrapperClassName","label","name","formGroupClassName","required","help","mdOffset","runtimeError","disabled","SectionGrid","subactions","AuthenticatorActionLinks","DocumentationLink","page","DocsHelper","AuthenticationOverviewLinks"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy