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

web-interface.assets.bb8c8232-2732.9a6fe506cb0a05ac7985.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["bb8c8232-2732"],{"/h1woUtA":(O,r,t)=>{t.d(r,{A:()=>Q});var e=t("Z7aTuO5B"),o=t("aRgBSN1I"),E=t("Lu0NTOJv"),s=t("IOI9nV80"),A=t("3yfJIRSb"),u=t("kbpndUm2"),d=t("QBkUz07U"),S=t("J6y4/h8P"),c=t("ty2gyrHp"),T=t("d4kzUuQm"),f=t("rIl5IEuP"),B=t("1VlHrt00");const h=(0,S.default)(f.ButtonToolbar)`
  display: flex;
  justify-content: flex-end;
`,R=({user:{fullName:n,id:a,roles:l,username:y},roles:m})=>{const M=l.map(P=>{var _,p;return(p=(_=m.find(C=>C.id===P))==null?void 0:_.name)!=null?p:"Role not found"}).toSet();return e.createElement("tr",{key:a},e.createElement("td",{className:"limited"},e.createElement(c.N,{to:T.Ay.SYSTEM.USERS.show(a)},y)),e.createElement("td",{className:"limited"},n),e.createElement(B.A,{roles:M}),e.createElement("td",{className:"limited"},e.createElement(h,null,e.createElement(c.m,{to:T.Ay.SYSTEM.USERS.edit(a)},e.createElement(f.Button,{type:"button",bsStyle:"info",bsSize:"xs"},"Edit")))))};var D=t("4APrn2Dx");const i=S.default.div`
  margin-bottom: 10px;
`,U=({onSearch:n})=>e.createElement(i,null,e.createElement(s.B9,{onReset:()=>n(""),onSearch:n,queryHelpComponent:e.createElement(D.A,null),topMargin:0})),K=["Username","Full Name","Roles","Actions"],L={page:1,perPage:10,query:""},W=n=>{switch(n.toLowerCase()){case"actions":return e.createElement("th",{className:"actions text-right"},n);default:return e.createElement("th",null,n)}},N=(n,a,l,y)=>{l(!0),u.A.loadUsersPaginated(n,a).then(m=>{y(m),l(!1)})},F=({roles:n,authenticationBackend:a})=>{const[l,y]=(0,e.useState)(!1),[m,M]=(0,e.useState)(),[P,_]=(0,e.useState)(L),{list:p}=m||{},{page:C}=P;if((0,e.useEffect)(()=>N(a.id,P,y,M),[a.id,P]),!m)return e.createElement(s.y$,null);const z=g=>e.createElement(R,{user:g,roles:n});return e.createElement(d.A,{title:"Synchronized Users",showLoading:l},e.createElement("p",{className:"description"},"Found ",m.pagination.total," synchronized users."),e.createElement(s.OW,{activePage:C,totalItems:m.pagination.total,onChange:(g,b)=>_({...P,page:g,perPage:b}),useQueryParameter:!1},e.createElement(s.bQ,{className:"table-hover",customFilter:e.createElement(U,{onSearch:g=>_({...P,query:g,page:L.page})}),dataRowFormatter:z,filterKeys:[],filterLabel:"Filter Users",headerCellFormatter:W,headers:K,id:"synced-users-overview",noDataText:e.createElement(s.EO,null,"No synchronized users have been found."),rowClassName:"no-bm",rows:p.toJS(),sortByKey:"username"})))},x=({authenticationBackend:n})=>{const a=(0,o.be)(),l=a==null?void 0:a.components.SyncedTeamsSection;return l?e.createElement(l,{authenticationBackend:n}):e.createElement(d.A,{title:"Synchronized Teams"},e.createElement(s.Uk,{featureName:"teams"}))},H=n=>{const a={page:1,perPage:0,query:""};E.A.loadRolesPaginated(a).then(n)},Q=({authenticationBackend:n})=>{const a=(0,o.RT)(n.config.type),[l,y]=(0,e.useState)();if((0,e.useEffect)(()=>H(y),[]),!a)return e.createElement(e.Fragment,null,`No authentication service plugin configured for type "${n.config.type}"`);if(!l)return e.createElement(s.y$,null);const{configDetailsComponent:m}=a;return e.createElement(A.A,null,e.createElement("div",null,e.createElement(m,{authenticationBackend:n,roles:l.list})),e.createElement("div",null,e.createElement(F,{authenticationBackend:n,roles:l.list}),e.createElement(x,{authenticationBackend:n})))}},"1VlHrt00":(O,r,t)=>{t.d(r,{A:()=>d});var e=t("Z7aTuO5B"),o=t("J6y4/h8P"),E=t("rIl5IEuP");const s=o.default.td`
  max-width: 300px;
`,A=(0,o.default)(E.Label)`
  margin-right: 5px;
  margin-bottom: 5px;
  display: inline-block;
  padding: 4px 6px;
`,d=({roles:S})=>e.createElement(s,null,S.map(c=>e.createElement(A,{key:c,bsStyle:c==="Admin"?"info":"default"},c)).toArray())},"4APrn2Dx":(O,r,t)=>{t.d(r,{A:()=>u});var e=t("Z7aTuO5B"),o=t("rlwexfKi");const E=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)),s={full_name:"The full name of a user",username:"The users login username.",email:"The users email."},u=()=>e.createElement(o.A,{example:E,commonFields:[],fieldMap:s,entityName:"user"})},VTwQeCkM:(O,r,t)=>{t.r(r),t.d(r,{default:()=>R});var e=t("Z7aTuO5B"),o=t("s1byLS3P"),E=t("c9JM82dZ"),s=t("ty2gyrHp"),A=t("UHXfBu6b"),u=t("E+CaPsQD"),d=t("TJOheZRu"),S=t("kbpndUm2"),c=t("IOI9nV80"),T=t("/h1woUtA"),f=t("d4kzUuQm"),B=t("rIl5IEuP");const h=(D,i=!1)=>{const v="Authentication Service Details",U=d.A.truncateWithEllipses(D,30);return i?`${v} - ${U}`:e.createElement(e.Fragment,null,v," - ",e.createElement("i",null,U))},I=({params:{backendId:D}})=>{const[i,v]=(0,e.useState)();return(0,e.useEffect)(()=>{S.A.load(D).then(U=>v(U.backend))},[D]),i?e.createElement(c.Qc,{title:h(i.title,!0)},e.createElement(o.A,null),e.createElement(c.zY,{title:h(i.title),actions:e.createElement(s.m,{to:f.Ay.SYSTEM.AUTHENTICATION.BACKENDS.edit(i==null?void 0:i.id)},e.createElement(B.Button,{bsStyle:"success",type:"button"},"Edit Service")),documentationLink:{title:"Authentication documentation",path:u.A.PAGES.USERS_ROLES}},e.createElement("span",null,"Configure Graylog's authentication services of this Graylog cluster.")),e.createElement(T.A,{authenticationBackend:i})):e.createElement(c.y$,null)},R=(0,E.A)(I)},c9JM82dZ:(O,r,t)=>{t.d(r,{A:()=>s});var e=t("Z7aTuO5B"),o=t("yAXMqwrl");const s=A=>u=>{const d=(0,o.useParams)();return e.createElement(A,{...u,params:d})}}}]);})();

//# sourceMappingURL=bb8c8232-2732.9a6fe506cb0a05ac7985.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy