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

web-interface.assets.6e61897c-47.472622149827c1587209.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
{"version":3,"sources":["webpack:///./src/components/common/Section/SectionGrid.tsx","webpack:///./src/pages/AuthenticationBackendDetailsPage.tsx","webpack:///./src/components/permissions/RolesCell.tsx","webpack:///./src/components/users/UsersQueryHelper.tsx","webpack:///./src/components/authentication/BackendDetails/SyncedUsersSection/SyncedUsersOverviewItem.tsx","webpack:///./src/components/authentication/BackendDetails/SyncedUsersSection/SyncedUsersFilter.tsx","webpack:///./src/components/authentication/BackendDetails/SyncedUsersSection/SyncedUsersSection.tsx","webpack:///./src/components/authentication/BackendDetails/SyncedUsersSection/index.tsx","webpack:///./src/components/authentication/BackendDetails/SyncedTeamsSection.tsx","webpack:///./src/components/authentication/BackendDetails/BackendDetails.tsx","webpack:///./src/components/authentication/BackendDetails/index.tsx"],"names":["SectionGrid","styled","div","$columns","theme","css","breakpoints","max","md","_pageTitle","authBackendTitle","returnString","pageName","backendTitle","StringUtils","truncateWithEllipses","withParams","backendId","params","useState","authBackend","setAuthBackend","useEffect","AuthenticationDomain","load","then","response","backend","title","subactions","to","Routes","SYSTEM","AUTHENTICATION","BACKENDS","edit","id","bsStyle","type","page","DocsHelper","PAGES","USERS_ROLES","text","authenticationBackend","Td","td","Role","Label","RolesCell","roles","map","role","key","userQueryHelperPopover","condensed","UserQueryHelper","trigger","rootClose","placement","overlay","name","ActionsWrapper","ButtonToolbar","SyncedUsersOverviewItem","user","fullName","userRolesIds","username","userRolesNames","roleId","find","toSet","className","USERS","show","bsSize","Container","SyncedUsersFilter","onSearch","onReset","queryHelpComponent","topMargin","TABLE_HEADERS","DEFAULT_PAGINATION","perPage","query","_headerCellFormatter","header","toLocaleLowerCase","SyncedUsersSection","loading","setLoading","paginatedUsers","setPaginatedUsers","pagination","setPagination","users","list","authBackendId","loadUsersPaginated","_loadSyncedTeams","SectionComponent","showLoading","total","activePage","totalItems","onChange","newPage","newPerPage","customFilter","newQuery","dataRowFormatter","filterKeys","filterLabel","headerCellFormatter","headers","noDataText","rowClassName","rows","toJS","sortByKey","SyncedTeamsSection","enterpriseAuthenticationPlugin","getEnterpriseAuthenticationPlugin","EnterpriseSyncedTeamsSection","components","featureName","BackendDetails","authService","getAuthServicePlugin","config","paginatedRoles","setPaginatedRoles","AuthzRolesDomain","loadRolesPaginated","_loadRoles","BackendConfigDetails","configDetailsComponent"],"mappings":"2GAAA,oBAkBMA,EAAcC,UAAOC,IAAV,kEAAGD,EAAmC,gBAAGE,EAAH,EAAGA,SAAUC,EAAb,EAAaA,MAAb,OAAyBC,cAAxB,CAAD,kHAE5BF,UAAY,UAGhBC,EAAME,YAAYC,IAAIC,OAK9BR,O,wsCCWf,IAAMS,EAAa,SAACC,GAA2C,IAAzBC,EAAyB,wDACvDC,EAAW,iCACXC,EAAeC,IAAYC,qBAAqBL,EAAkB,IAExE,OAAIC,EACF,UAAUC,EAAV,cAAwBC,GAGnB,gCAAGD,EAAH,MAAe,yBAAIC,KAsCbG,uBAnC0B,SAAC,GAAqC,IAAzBC,EAAyB,EAAnCC,OAAUD,UAAyB,IACvCE,qBADuC,GACtEC,EADsE,KACzDC,EADyD,KAO7E,OAJAC,qBAAU,WACRC,IAAqBC,KAAKP,GAAWQ,MAAK,SAACC,GAAD,OAAcL,EAAeK,EAASC,cAC/E,CAACV,IAECG,EAKH,gBAAC,IAAD,CAAeQ,MAAOnB,EAAWW,EAAYQ,OAAO,IAClD,gCACE,gBAAC,IAAD,CAAYA,MAAOnB,EAAWW,EAAYQ,OAC9BC,WACE,gBAAC,IAAD,CAAeC,GAAIC,IAAOC,OAAOC,eAAeC,SAASC,KAAKf,aAA3C,EAA2CA,EAAagB,KACzE,gBAAC,IAAD,CAAQC,QAAQ,UACRC,KAAK,UADb,kBAMd,oGACA,+DAAsC,gBAAC,IAAD,CAAmBC,KAAMC,IAAWC,MAAMC,YACvBC,KAAK,kBAD9D,KAGA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O,KAED7D,KAAK4G,GAavCG,CAAWH,KAAoB,KAE1CJ,EACH,OAAO,gGAA6DrF,EAAsBuF,OAAuB7F,KAA1G,MAGT,IAAK8F,EACH,OAAO,gBAAC,KAAD,MAXkD,IAc3BK,EAAyBR,EAAjDS,uBAER,OACE,gBAAC1I,EAAA,EAAD,KACE,2BACE,gBAACyI,EAAD,CAAsB7F,sBAAuBA,EAAuBM,MAAOkF,EAAelC,QAE5F,2BACE,gBAAC,EAAD,CAAoBtD,sBAAuBA,EAAuBM,MAAOkF,EAAelC,OACxF,gBAAC,EAAD,CAAoBtD,sBAAuBA,OC9CpCoF","file":"6e61897c-47.472622149827c1587209.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 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 * as React from 'react';\nimport { useState, useEffect } from 'react';\n\nimport AuthenticationOverviewLinks from 'components/authentication/AuthenticationOverviewLinks';\nimport withParams from 'routing/withParams';\nimport { LinkContainer } from 'components/graylog/router';\nimport {} from 'components/authentication/bindings'; // Bind all authentication plugins\nimport DocsHelper from 'util/DocsHelper';\nimport StringUtils from 'util/StringUtils';\nimport AuthenticationDomain from 'domainActions/authentication/AuthenticationDomain';\nimport { Spinner, PageHeader, DocumentTitle } from 'components/common';\nimport BackendDetails from 'components/authentication/BackendDetails';\nimport DocumentationLink from 'components/support/DocumentationLink';\nimport Routes from 'routing/Routes';\nimport { Button } from 'components/graylog';\nimport AuthenticationBackend from 'logic/authentication/AuthenticationBackend';\n\ntype Props = {\n  params: {\n    backendId: string,\n  },\n};\n\nconst _pageTitle = (authBackendTitle, returnString = false) => {\n  const pageName = 'Authentication Service Details';\n  const backendTitle = StringUtils.truncateWithEllipses(authBackendTitle, 30);\n\n  if (returnString) {\n    return `${pageName} - ${backendTitle}`;\n  }\n\n  return <>{pageName} - {backendTitle};\n};\n\nconst AuthenticationBackendDetailsPage = ({ params: { backendId } }: 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  return (\n    \n      <>\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      \n    \n  );\n};\n\nexport default withParams(AuthenticationBackendDetailsPage);\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 from 'styled-components';\nimport * as Immutable from 'immutable';\n\nimport { Label } from 'components/graylog';\n\nconst Td = styled.td`\n  max-width: 300px;\n`;\n\nconst Role = styled(Label)`\n  margin-right: 5px;\n  margin-bottom: 5px;\n  display: inline-block;\n  line-height: 15px;\n`;\n\ntype Props = {\n  roles: Immutable.Set,\n};\n\nconst RolesCell = ({ roles }: Props) => (\n  \n    {roles.map((role) => (\n      \n        {role}\n      \n    ))}\n  \n);\n\nexport default RolesCell;\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 { OverlayTrigger, Popover, Table, Button } from 'components/graylog';\nimport { Icon } from 'components/common';\n\nconst userQueryHelperPopover = (\n  \n    

Available search fields

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FieldDescription
full_nameThe full name of a user
usernameThe users login username.
emailThe users email.
\n

Examples

\n

\n Find users with a email containing example.com:
\n email:example.com
\n

\n
\n);\n\nconst UserQueryHelper = () => (\n \n \n \n);\n\nexport default UserQueryHelper;\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 * as Immutable from 'immutable';\nimport styled from 'styled-components';\n\nimport { LinkContainer, Link } from 'components/graylog/router';\nimport Role from 'logic/roles/Role';\nimport Routes from 'routing/Routes';\nimport UserOverview from 'logic/users/UserOverview';\nimport { Button, ButtonToolbar } from 'components/graylog';\nimport RolesCell from 'components/permissions/RolesCell';\n\ntype Props = {\n user: UserOverview,\n roles: Immutable.List,\n};\n\nconst ActionsWrapper = styled(ButtonToolbar)`\n display: flex;\n justify-content: flex-end;\n`;\n\nconst SyncedUsersOverviewItem = ({\n user: {\n fullName,\n id,\n roles: userRolesIds,\n username,\n },\n roles,\n}: Props) => {\n const userRolesNames = userRolesIds.map((roleId) => {\n return roles.find((role) => role.id === roleId)?.name ?? 'Role not found';\n }).toSet();\n\n return (\n \n \n \n {username}\n \n \n {fullName}\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default SyncedUsersOverviewItem;\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 from 'styled-components';\n\nimport { SearchForm } from 'components/common';\nimport UserQueryHelper from 'components/users/UsersQueryHelper';\n\ntype Props = {\n onSearch: (query: string) => void,\n};\n\nconst Container = styled.div`\n margin-bottom: 10px;\n`;\n\nconst SyncedUsersFilter = ({ onSearch }: Props) => (\n \n onSearch('')}\n onSearch={onSearch}\n queryHelpComponent={}\n topMargin={0} />\n \n);\n\nexport default SyncedUsersFilter;\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 * as Immutable from 'immutable';\n\nimport Role from 'logic/roles/Role';\nimport { PaginatedUsers } from 'actions/users/UsersActions';\nimport AuthenticationDomain from 'domainActions/authentication/AuthenticationDomain';\nimport { DataTable, PaginatedList, Spinner, EmptyResult } from 'components/common';\nimport SectionComponent from 'components/common/Section/SectionComponent';\nimport AuthenticationBackend from 'logic/authentication/AuthenticationBackend';\n\nimport SyncedUsersOverviewItem from './SyncedUsersOverviewItem';\nimport SyncedUsersFilter from './SyncedUsersFilter';\n\nconst TABLE_HEADERS = ['Username', 'Full Name', 'Roles', 'Actions'];\nconst DEFAULT_PAGINATION = {\n page: 1,\n perPage: 10,\n query: '',\n};\n\nconst _headerCellFormatter = (header) => {\n switch (header.toLocaleLowerCase()) {\n case 'actions':\n return {header};\n default:\n return {header};\n }\n};\n\nconst _loadSyncedTeams = (authBackendId, pagination, setLoading, setPaginatedUsers) => {\n setLoading(true);\n\n AuthenticationDomain.loadUsersPaginated(authBackendId, pagination).then((paginatedUsers) => {\n setPaginatedUsers(paginatedUsers);\n setLoading(false);\n });\n};\n\ntype Props = {\n roles: Immutable.List,\n authenticationBackend: AuthenticationBackend,\n};\n\nconst SyncedUsersSection = ({ roles, authenticationBackend }: Props) => {\n const [loading, setLoading] = useState(false);\n const [paginatedUsers, setPaginatedUsers] = useState();\n const [pagination, setPagination] = useState(DEFAULT_PAGINATION);\n const { list: users } = paginatedUsers || {};\n const { page } = pagination;\n\n useEffect(() => _loadSyncedTeams(authenticationBackend.id, pagination, setLoading, setPaginatedUsers), [authenticationBackend.id, pagination]);\n\n if (!paginatedUsers) {\n return ;\n }\n\n const _userOverviewItem = (user) => ;\n\n return (\n \n

\n Found {paginatedUsers.pagination.total} synchronized users.\n

\n setPagination({ ...pagination, page: newPage, perPage: newPerPage })}>\n setPagination({ ...pagination, query: newQuery, page: DEFAULT_PAGINATION.page })} />}\n dataRowFormatter={_userOverviewItem}\n filterKeys={[]}\n filterLabel=\"Filter Users\"\n headerCellFormatter={_headerCellFormatter}\n headers={TABLE_HEADERS}\n id=\"synced-users-overview\"\n noDataText={No synchronized users have been found.}\n rowClassName=\"no-bm\"\n rows={users.toJS()}\n sortByKey=\"username\" />\n \n
\n );\n};\n\nexport default SyncedUsersSection;\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 SyncedUsersSection from './SyncedUsersSection';\n\nexport default SyncedUsersSection;\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 { EnterprisePluginNotFound } from 'components/common';\nimport { getEnterpriseAuthenticationPlugin } from 'util/AuthenticationService';\nimport AuthenticationBackend from 'logic/authentication/AuthenticationBackend';\nimport SectionComponent from 'components/common/Section/SectionComponent';\n\ntype Props = {\n authenticationBackend: AuthenticationBackend,\n};\n\nconst SyncedTeamsSection = ({ authenticationBackend }: Props) => {\n const enterpriseAuthenticationPlugin = getEnterpriseAuthenticationPlugin();\n const EnterpriseSyncedTeamsSection = enterpriseAuthenticationPlugin?.components.SyncedTeamsSection;\n\n if (!EnterpriseSyncedTeamsSection) {\n return (\n \n \n \n );\n }\n\n return ;\n};\n\nexport default SyncedTeamsSection;\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 { useEffect, useState } from 'react';\n\nimport { getAuthServicePlugin } from 'util/AuthenticationService';\nimport { PaginatedRoles } from 'actions/roles/AuthzRolesActions';\nimport AuthzRolesDomain from 'domainActions/roles/AuthzRolesDomain';\nimport AuthenticationBackend from 'logic/authentication/AuthenticationBackend';\nimport { Spinner } from 'components/common';\nimport SectionGrid from 'components/common/Section/SectionGrid';\n\nimport SyncedUsersSection from './SyncedUsersSection';\nimport SyncedTeamsSection from './SyncedTeamsSection';\n\nconst _loadRoles = (setPaginatedRoles) => {\n const getUnlimited = { page: 1, perPage: 0, query: '' };\n\n AuthzRolesDomain.loadRolesPaginated(getUnlimited).then(setPaginatedRoles);\n};\n\ntype Props = {\n authenticationBackend: AuthenticationBackend,\n};\n\ntype TypedConfig = { type: string };\n\nconst BackendDetails = ({ authenticationBackend }: Props) => {\n const authService = getAuthServicePlugin((authenticationBackend.config as TypedConfig).type);\n const [paginatedRoles, setPaginatedRoles] = useState();\n\n useEffect(() => _loadRoles(setPaginatedRoles), []);\n\n if (!authService) {\n return <>{`No authentication service plugin configured for type \"${(authenticationBackend.config as TypedConfig).type}\"`};\n }\n\n if (!paginatedRoles) {\n return ;\n }\n\n const { configDetailsComponent: BackendConfigDetails } = authService;\n\n return (\n \n
\n \n
\n
\n \n \n
\n
\n );\n};\n\nexport default BackendDetails;\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 BackendDetails from './BackendDetails';\n\nexport default BackendDetails;\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy