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