web-interface.assets.1255d548-8440.761d7b075cdd5266e24f.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-8440"],{GyKb0veu:(Y,v,t)=>{t.r(v),t.d(v,{default:()=>I});var e=t("Z7aTuO5B"),j=t("UHXfBu6b"),p=t("s1byLS3P"),l=t("uZqmR+ju"),s=t("/GOzvPf6"),i=t("UiXZqrDE"),C=t("QL8i6bcz"),c=t("J6y4/h8P"),g=t("d4kzUuQm"),A=t("S6FuRS7B"),y=t("4E3oowBb"),T=t("/7OuCFNo"),h=t("MdYBRjRJ"),P=t("8OvTct/Z"),B=t("0t7Ye+61"),E=t("v4GbOr/o");const N=c.default.div`
display: flex;
align-items: start;
width: 100%;
`,R=(0,c.default)(i.Form)`
max-width: 360px;
width: 100%;
`,G=c.default.div`
flex: 1;
`,O=(n,{authServiceType:o})=>{const r=g.ZP.SYSTEM.AUTHENTICATION.BACKENDS.createBackend(o);n.push(r)},Z=()=>{const r=C.G.exports("authentication.services").sort((a,d)=>(0,y.S)(a.displayName,d.displayName)).map(a=>({label:a.displayName,value:a.name})),f=(0,T.Z)(),{pathname:m}=(0,B.Z)(),u=(0,P.Z)(),b=(0,e.useCallback)(a=>{u(E.A.AUTHENTICATION.SERVICE_CREATED,{app_pathname:(0,h.av)(m),app_section:"services",app_action_value:"create-service-form"}),O(f,a)},[f,m,u]);return e.createElement(i.Formik,{onSubmit:b,initialValues:{authServiceType:void 0}},({isSubmitting:a,isValid:d})=>e.createElement(R,null,e.createElement(N,null,e.createElement(G,{className:"form-group"},e.createElement(i.Field,{name:"authServiceType",validate:(0,A.OP)({required:!0})},({field:{name:x,value:H,onChange:z},meta:{error:V}})=>e.createElement(e.Fragment,null,e.createElement(s.Ph,{clearable:!1,inputProps:{"aria-label":"Select a service"},onChange:Q=>{u(E.A.AUTHENTICATION.SERVICE_SELECTED,{app_pathname:(0,h.av)(m),app_section:"services",app_action_value:"selectservice"}),z({target:{value:Q,name:x}})},options:r,placeholder:"Select a service",value:H}),e.createElement(s.d2,{error:V})))),"\xA0",e.createElement(l.Button,{bsStyle:"success",disabled:a||!d,type:"submit"},"Get started"))))},S=({title:n})=>e.createElement(l.Row,{className:"content"},e.createElement(l.Col,{md:6,mdOffset:3},e.createElement(s.ai,{title:n},e.createElement("p",null,"Beside the built-in authentication mechanisms like its internal user database or LDAP/Active Directory, authentication services can also be extended by plugins to support other authentication mechanisms. Select an authentication service to setup a new one."),e.createElement(Z,null))));S.defaultProps={title:void 0};const U=S;var F=t("WPUkC7Fx"),L=t("E+CaPsQD"),D=t("ezgdc3VG");const I=()=>{const{finishedLoading:n,activeBackend:o}=(0,F.Z)();return e.createElement(s.$4,{title:"Create Authentication Service"},e.createElement(p.Z,null),e.createElement(s.mr,{title:"Create Authentication Service",actions:e.createElement(D.Z,{activeBackend:o,finishedLoading:n}),documentationLink:{title:"Authentication documentation",path:L.Z.PAGES.USERS_ROLES}},e.createElement("span",null,"Configure Graylog's authentication services of this Graylog cluster.")),e.createElement(U,{title:"Create New Authentication Service"}))}}}]);})();
//# sourceMappingURL=1255d548-8440.761d7b075cdd5266e24f.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy