web-interface.assets.1255d548-832.00643985ddc5dc9a3f27.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-832"],{"/h1woUtA":(_,m,t)=>{t.d(m,{Z:()=>H});var e=t("Z7aTuO5B"),c=t("aRgBSN1I"),d=t("Lu0NTOJv"),a=t("/GOzvPf6"),S=t("3yfJIRSb"),y=t("kbpndUm2"),P=t("QBkUz07U"),O=t("J6y4/h8P"),E=t("ty2gyrHp"),A=t("d4kzUuQm"),f=t("uZqmR+ju"),R=t("1VlHrt00");const h=(0,O.default)(f.ButtonToolbar)`
display: flex;
justify-content: flex-end;
`,C=({user:{fullName:n,id:l,roles:o,username:D},roles:u})=>{const B=o.map(g=>{var U,p;return(p=(U=u.find(I=>I.id===g))==null?void 0:U.name)!=null?p:"Role not found"}).toSet();return e.createElement("tr",{key:l},e.createElement("td",{className:"limited"},e.createElement(E.r,{to:A.ZP.SYSTEM.USERS.show(l)},D)),e.createElement("td",{className:"limited"},n),e.createElement(R.Z,{roles:B}),e.createElement("td",{className:"limited"},e.createElement(h,null,e.createElement(E.J,{to:A.ZP.SYSTEM.USERS.edit(l)},e.createElement(f.Button,{type:"button",bsStyle:"info",bsSize:"xs"},"Edit")))))};var M=t("4APrn2Dx");const s=O.default.div`
margin-bottom: 10px;
`,i=({onSearch:n})=>e.createElement(s,null,e.createElement(a.UI,{onReset:()=>n(""),onSearch:n,queryHelpComponent:e.createElement(M.Z,null),topMargin:0})),v=["Username","Full Name","Roles","Actions"],Z={page:1,perPage:10,query:""},K=n=>{switch(n.toLowerCase()){case"actions":return e.createElement("th",{className:"actions text-right"},n);default:return e.createElement("th",null,n)}},W=(n,l,o,D)=>{o(!0),y.Z.loadUsersPaginated(n,l).then(u=>{D(u),o(!1)})},N=({roles:n,authenticationBackend:l})=>{const[o,D]=(0,e.useState)(!1),[u,B]=(0,e.useState)(),[g,U]=(0,e.useState)(Z),{list:p}=u||{},{page:I}=g;if((0,e.useEffect)(()=>W(l.id,g,D,B),[l.id,g]),!u)return e.createElement(a.$j,null);const z=T=>e.createElement(C,{user:T,roles:n});return e.createElement(P.Z,{title:"Synchronized Users",showLoading:o},e.createElement("p",{className:"description"},"Found ",u.pagination.total," synchronized users."),e.createElement(a.l9,{activePage:I,totalItems:u.pagination.total,onChange:(T,J)=>U({...g,page:T,perPage:J}),useQueryParameter:!1},e.createElement(a.wQ,{className:"table-hover",customFilter:e.createElement(i,{onSearch:T=>U({...g,query:T,page:Z.page})}),dataRowFormatter:z,filterKeys:[],filterLabel:"Filter Users",headerCellFormatter:K,headers:v,id:"synced-users-overview",noDataText:e.createElement(a.pJ,null,"No synchronized users have been found."),rowClassName:"no-bm",rows:p.toJS(),sortByKey:"username"})))},F=({authenticationBackend:n})=>{const l=(0,c.Re)(),o=l==null?void 0:l.components.SyncedTeamsSection;return o?e.createElement(o,{authenticationBackend:n}):e.createElement(P.Z,{title:"Synchronized Teams"},e.createElement(a.VL,{featureName:"teams"}))},x=n=>{const l={page:1,perPage:0,query:""};d.Z.loadRolesPaginated(l).then(n)},H=({authenticationBackend:n})=>{const l=(0,c.ih)(n.config.type),[o,D]=(0,e.useState)();if((0,e.useEffect)(()=>x(D),[]),!l)return e.createElement(e.Fragment,null,`No authentication service plugin configured for type "${n.config.type}"`);if(!o)return e.createElement(a.$j,null);const{configDetailsComponent:u}=l;return e.createElement(S.Z,null,e.createElement("div",null,e.createElement(u,{authenticationBackend:n,roles:o.list})),e.createElement("div",null,e.createElement(N,{authenticationBackend:n,roles:o.list}),e.createElement(F,{authenticationBackend:n})))}},"1VlHrt00":(_,m,t)=>{t.d(m,{Z:()=>P});var e=t("Z7aTuO5B"),c=t("J6y4/h8P"),d=t("uZqmR+ju");const a=c.default.td`
max-width: 300px;
`,S=(0,c.default)(d.Label)`
margin-right: 5px;
margin-bottom: 5px;
display: inline-block;
padding: 4px 6px;
`,P=({roles:O})=>e.createElement(a,null,O.map(E=>e.createElement(S,{key:E,bsStyle:E==="Admin"?"info":"default"},E)).toArray())},"4APrn2Dx":(_,m,t)=>{t.d(m,{Z:()=>y});var e=t("Z7aTuO5B"),c=t("uZqmR+ju"),d=t("/GOzvPf6");const a=e.createElement(c.Popover,{id:"user-search-query-help",title:"Search Syntax Help"},e.createElement("p",null,e.createElement("strong",null,"Available search fields")),e.createElement(c.Table,{condensed:!0},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"Field"),e.createElement("th",null,"Description"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"full_name"),e.createElement("td",null,"The full name of a user")),e.createElement("tr",null,e.createElement("td",null,"username"),e.createElement("td",null,"The users login username.")),e.createElement("tr",null,e.createElement("td",null,"email"),e.createElement("td",null,"The users email.")))),e.createElement("p",null,e.createElement("strong",null,"Examples")),e.createElement("p",null,"Find users with a email containing example.com:",e.createElement("br",null),e.createElement("kbd",null,"email:example.com"),e.createElement("br",null))),y=()=>e.createElement(d.Ox,{trigger:"click",rootClose:!0,placement:"right",overlay:a},e.createElement(c.Button,{bsStyle:"link"},e.createElement(d.JO,{name:"question-circle"})))},oOBRVnUG:(_,m,t)=>{t.r(m),t.d(m,{default:()=>M});var e=t("Z7aTuO5B"),c=t("UHXfBu6b"),d=t("s1byLS3P"),a=t("E+CaPsQD"),S=t("c9JM82dZ"),y=t("TJOheZRu"),P=t("d4kzUuQm"),O=t("WPUkC7Fx"),E=t("/GOzvPf6"),A=t("ezgdc3VG"),f=t("/h1woUtA"),R=t("/7OuCFNo");const h=(s,r)=>{const i="Active Authentication Service";if(s){const v=y.Z.truncateWithEllipses(s.title,30);return r?`${i} - ${v}`:e.createElement(e.Fragment,null,i," - ",e.createElement("i",null,v))}return i},L=(s,r,i)=>{const v=(0,R.Z)();(0,e.useEffect)(()=>{s&&!r&&i===0?v.push(P.ZP.SYSTEM.AUTHENTICATION.BACKENDS.CREATE):s&&!r&&i&&v.push(P.ZP.SYSTEM.AUTHENTICATION.BACKENDS.OVERVIEW)},[s,r,i,v])},C=()=>{const{finishedLoading:s,activeBackend:r,backendsTotal:i}=(0,O.Z)();return L(s,r,i),s?e.createElement(E.$4,{title:h(r,!0)},e.createElement(d.Z,null),e.createElement(E.mr,{title:h(r),actions:e.createElement(A.Z,{activeBackend:r,finishedLoading:s}),documentationLink:{title:"Authentication documentation",path:a.Z.PAGES.USERS_ROLES}},e.createElement("span",null,"Configure Graylog's authentication services of this Graylog cluster.")),s&&r&&e.createElement(f.Z,{authenticationBackend:r})):e.createElement(E.$j,null)},M=(0,S.Z)(C)},c9JM82dZ:(_,m,t)=>{t.d(m,{Z:()=>a});var e=t("Z7aTuO5B"),c=t("yAXMqwrl");const a=S=>y=>{const P=(0,c.useParams)();return e.createElement(S,{...y,params:P})}}}]);})();
//# sourceMappingURL=1255d548-832.00643985ddc5dc9a3f27.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy