web-interface.assets.1255d548-8461.242393b3a6d3d54debda.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-8461"],{s1byLS3P:(H,i,t)=>{t.d(i,{Z:()=>d});var e=t("Z7aTuO5B"),s=t("d4kzUuQm"),u=t("SfPIQIJE"),c=t("uZqmR+ju");const l=[{title:"Authentication Services",path:s.ZP.SYSTEM.AUTHENTICATION.BACKENDS.OVERVIEW},{title:"Authenticators",path:s.ZP.SYSTEM.AUTHENTICATION.AUTHENTICATORS.SHOW}],d=()=>e.createElement(c.Row,null,e.createElement(u.Z,{items:l}))},iH4vHcQO:(H,i,t)=>{t.d(i,{Z:()=>o});var e=t("Z7aTuO5B"),s=t("d4kzUuQm"),u=t("ty2gyrHp"),c=t("uZqmR+ju");const o=()=>e.createElement(c.ButtonToolbar,null,e.createElement(u.J,{to:s.ZP.SYSTEM.AUTHENTICATION.AUTHENTICATORS.EDIT},e.createElement(c.Button,{bsStyle:"success",type:"button"},"Edit Authenticators")))},SfPIQIJE:(H,i,t)=>{t.d(i,{Z:()=>E});var e=t("Z7aTuO5B"),s=t("J6y4/h8P"),u=t("uZqmR+ju"),c=t("ty2gyrHp"),l=t("/GOzvPf6"),o=t("NV1/EHMi");const d=(0,s.default)(u.ButtonToolbar)`
margin-bottom: 10px;
`,T=(0,s.default)(u.Button)(({theme:a})=>(0,s.css)`
font-family: ${a.fonts.family.navigation};
font-size: ${a.fonts.size.navigation};
&&&& {
color: ${a.colors.variant.darker.default};
&:hover,
&:focus {
text-decoration: none;
}
> div {
&:hover,
&:focus {
color: ${a.colors.variant.darker.default};
}
}
&:hover {
${(0,o.RF)(a)}
}
&.active {
color: ${a.colors.global.textDefault};
${(0,o.A7)(a)}
&:hover,
&:focus {
${(0,o.A7)(a)}
}
}
}
`);T.displayName="Button";const E=({items:a})=>e.createElement(d,null,a.map(({path:A,title:P,permissions:v,exactPathMatch:f})=>A?e.createElement(l.AE,{permissions:v!=null?v:[],key:A},e.createElement(c.J,{to:A,relativeActive:!f},e.createElement(T,{bsStyle:"link"},e.createElement(o.ZP,null,P)))):null))},"1Ijk4Xxt":(H,i,t)=>{t.d(i,{Z:()=>g});var e=t("JnTtTRmZ"),s=t.n(e),u=t("IA3Ku5lS");const l=(0,u.ei)("HTTPHeaderAuthConfig",()=>s().createActions({load:{asyncResult:!0},update:{asyncResult:!0}}));var o=t("eFxcQyPT"),d=t("U1Iufsob"),T=t("MdYBRjRJ"),h=t("VPaD/Np4");class E{constructor(n,r){this._value={usernameHeader:n,enabled:r}}get usernameHeader(){return this._value.usernameHeader}get enabled(){return this._value.enabled}toBuilder(){const{usernameHeader:n,enabled:r}=this._value;return new a(h.Map({usernameHeader:n,enabled:r}))}static create(n,r){return new E(n,r)}toJSON(){const{usernameHeader:n,enabled:r}=this._value;return{username_header:n,enabled:r}}static fromJSON(n){const{username_header:r,enabled:D}=n;return E.create(r,D)}static builder(){return new a}}class a{constructor(n=h.Map()){this.value=n}usernameHeader(n){return new a(this.value.set("usernameHeader",n))}enabled(n){return new a(this.value.set("enabled",n))}build(){const{usernameHeader:n,enabled:r}=this.value.toObject();return new E(n,r)}}const A=(0,u.dS)("HTTPHeaderAuthConfig",()=>s().createStore({listenables:[l],load(){const m=(0,T.DC)(d.Z.HTTPHeaderAuthConfigController.load().url),n=(0,o.ZP)("GET",m).then(E.fromJSON);return l.load.promise(n),n},update(m){const n=(0,T.DC)(d.Z.HTTPHeaderAuthConfigController.update().url),r=(0,o.ZP)("PUT",n,m).then(E.fromJSON);return l.update.promise(r),r}}));var P=t("lDGobrly");const v=(0,P.Z)({action:l.load,error:m=>({message:`Loading HTTP header authentication config failed with status: ${m}`})}),f=(0,P.Z)({action:l.update,success:()=>({message:"Successfully updated HTTP header authentication config"}),error:m=>({message:`Updating HTTP header authentication config failed with status: ${m}`})}),g={load:v,update:f}},"t+Jkqvd1":(H,i,t)=>{t.r(i),t.d(i,{default:()=>f});var e=t("Z7aTuO5B"),s=t("s1byLS3P"),u=t("iH4vHcQO"),c=t("3yfJIRSb"),l=t("1Ijk4Xxt"),o=t("/GOzvPf6"),d=t("QBkUz07U");const h=()=>{const[g,m]=(0,e.useState)(),n="Trusted Header Authentication";return(0,e.useEffect)(()=>{l.Z.load().then(m)},[]),g?e.createElement(d.Z,{title:n},e.createElement("p",null,"This authenticator enables you to login a user, based on a HTTP header without further interaction."),e.createElement(o.mv,{label:"Enabled",value:g.enabled}),e.createElement(o.mv,{label:"Username header",value:g.usernameHeader})):e.createElement(d.Z,{title:n},e.createElement(o.$j,null))},A=()=>e.createElement(c.Z,null,e.createElement(h,null));var P=t("E+CaPsQD");const f=()=>e.createElement(o.$4,{title:"Authenticators Details"},e.createElement(s.Z,null),e.createElement(o.mr,{title:"Authenticators Details",actions:e.createElement(u.Z,null),documentationLink:{title:"Authenticators documentation",path:P.Z.PAGES.AUTHENTICATORS}},e.createElement("span",null,"Configure the trusted header authentication.")),e.createElement(A,null))}}]);})();
//# sourceMappingURL=1255d548-8461.242393b3a6d3d54debda.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy