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