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

web-interface.assets.1255d548-4376.86d943ecc614c0b3fe7c.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([["1255d548-4376"],{s1byLS3P:(f,d,t)=>{t.d(d,{Z:()=>r});var e=t("Z7aTuO5B"),s=t("d4kzUuQm"),c=t("SfPIQIJE"),m=t("uZqmR+ju");const i=[{title:"Authentication Services",path:s.ZP.SYSTEM.AUTHENTICATION.BACKENDS.OVERVIEW},{title:"Authenticators",path:s.ZP.SYSTEM.AUTHENTICATION.AUTHENTICATORS.SHOW}],r=()=>e.createElement(m.Row,null,e.createElement(c.Z,{items:i}))},iH4vHcQO:(f,d,t)=>{t.d(d,{Z:()=>l});var e=t("Z7aTuO5B"),s=t("d4kzUuQm"),c=t("ty2gyrHp"),m=t("uZqmR+ju");const l=()=>e.createElement(m.ButtonToolbar,null,e.createElement(c.J,{to:s.ZP.SYSTEM.AUTHENTICATION.AUTHENTICATORS.EDIT},e.createElement(m.Button,{bsStyle:"success",type:"button"},"Edit Authenticators")))},SfPIQIJE:(f,d,t)=>{t.d(d,{Z:()=>E});var e=t("Z7aTuO5B"),s=t("J6y4/h8P"),c=t("uZqmR+ju"),m=t("ty2gyrHp"),i=t("/GOzvPf6"),l=t("NV1/EHMi");const r=(0,s.default)(c.ButtonToolbar)`
  margin-bottom: 10px;
`,u=(0,s.default)(c.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,l.RF)(a)}
    }

    &.active {
      color: ${a.colors.global.textDefault};

      ${(0,l.A7)(a)}

      &:hover,
      &:focus {
        ${(0,l.A7)(a)}
      }
    }
  }
`);u.displayName="Button";const E=({items:a})=>e.createElement(r,null,a.map(({path:A,title:v,permissions:P,exactPathMatch:g})=>A?e.createElement(i.AE,{permissions:P!=null?P:[],key:A},e.createElement(m.J,{to:A,relativeActive:!g},e.createElement(u,{bsStyle:"link"},e.createElement(l.ZP,null,v)))):null))},"1Ijk4Xxt":(f,d,t)=>{t.d(d,{Z:()=>C});var e=t("JnTtTRmZ"),s=t.n(e),c=t("IA3Ku5lS");const i=(0,c.ei)("HTTPHeaderAuthConfig",()=>s().createActions({load:{asyncResult:!0},update:{asyncResult:!0}}));var l=t("eFxcQyPT"),r=t("U1Iufsob"),u=t("MdYBRjRJ"),h=t("VPaD/Np4");class E{constructor(n,o){this._value={usernameHeader:n,enabled:o}}get usernameHeader(){return this._value.usernameHeader}get enabled(){return this._value.enabled}toBuilder(){const{usernameHeader:n,enabled:o}=this._value;return new a(h.Map({usernameHeader:n,enabled:o}))}static create(n,o){return new E(n,o)}toJSON(){const{usernameHeader:n,enabled:o}=this._value;return{username_header:n,enabled:o}}static fromJSON(n){const{username_header:o,enabled:O}=n;return E.create(o,O)}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:o}=this.value.toObject();return new E(n,o)}}const A=(0,c.dS)("HTTPHeaderAuthConfig",()=>s().createStore({listenables:[i],load(){const T=(0,u.DC)(r.Z.HTTPHeaderAuthConfigController.load().url),n=(0,l.ZP)("GET",T).then(E.fromJSON);return i.load.promise(n),n},update(T){const n=(0,u.DC)(r.Z.HTTPHeaderAuthConfigController.update().url),o=(0,l.ZP)("PUT",n,T).then(E.fromJSON);return i.update.promise(o),o}}));var v=t("lDGobrly");const P=(0,v.Z)({action:i.load,error:T=>({message:`Loading HTTP header authentication config failed with status: ${T}`})}),g=(0,v.Z)({action:i.update,success:()=>({message:"Successfully updated HTTP header authentication config"}),error:T=>({message:`Updating HTTP header authentication config failed with status: ${T}`})}),C={load:P,update:g}},"upRafL+V":(f,d,t)=>{t.r(d),t.d(d,{default:()=>M});var e=t("Z7aTuO5B"),s=t("iH4vHcQO"),c=t("3yfJIRSb"),m=t("UiXZqrDE"),i=t("d4kzUuQm"),l=t("1Ijk4Xxt"),r=t("uZqmR+ju"),u=t("/GOzvPf6"),h=t("QBkUz07U"),E=t("/7OuCFNo"),a=t("MdYBRjRJ"),A=t("8OvTct/Z"),v=t("0t7Ye+61"),P=t("v4GbOr/o");const C=()=>{const[Z,D]=(0,e.useState)(),[R,p]=(0,e.useState)(),I="Trusted Header Authentication",B=(0,E.Z)(),{pathname:L}=(0,v.Z)(),b=(0,A.Z)(),W=H=>(b(P.A.AUTHENTICATION.CONFIG_UPDATED,{app_pathname:(0,a.av)(L),app_section:"authenticator-trustedheader",app_action_value:"config-update"}),D(void 0),l.Z.update(H).then(()=>{B.push(i.ZP.SYSTEM.AUTHENTICATION.AUTHENTICATORS.SHOW)}).catch(S=>{var U,N;D((N=(U=S.additional)==null?void 0:U.res)==null?void 0:N.text)}));return(0,e.useEffect)(()=>{l.Z.load().then(p)},[]),R?e.createElement(h.Z,{title:I},e.createElement("p",null,"This authenticator enables you to login a user, based on a HTTP header without further interaction."),e.createElement(m.Formik,{onSubmit:W,initialValues:R.toJSON()},({isSubmitting:H,isValid:S})=>e.createElement(m.Form,{className:"form form-horizontal"},e.createElement(r.Input,{id:"enable-http-header-auth",labelClassName:"col-sm-3",wrapperClassName:"col-sm-9",label:"Enabled"},e.createElement(u.Fe,{label:"Enable single sign-on via HTTP header",name:"enabled",formGroupClassName:"form-group no-bm",wrapperClassName:"col-xs-12",type:"checkbox"})),e.createElement(u.Fe,{label:"Username header",name:"username_header",required:!0,help:"HTTP header containing the implicitly trusted name of the Graylog user. (The header match is ignoring case sensitivity)"}),e.createElement(r.Row,null,e.createElement(r.Col,{mdOffset:3,md:9},e.createElement(r.Alert,{bsStyle:"info"},"Please configure the ",e.createElement("code",null,"trusted_proxies")," setting in the Graylog server configuration file."))),e.createElement(u.hW,{runtimeError:!0},Z),e.createElement(r.Row,{className:"no-bm"},e.createElement(r.Col,{xs:12},e.createElement("div",{className:"pull-right"},e.createElement(r.Button,{bsStyle:"success",disabled:H||!S,title:"Update Config",type:"submit"},"Update Config"))))))):e.createElement(h.Z,{title:I},e.createElement(u.$j,null))},o=()=>e.createElement(c.Z,null,e.createElement(C,null));var O=t("E+CaPsQD"),y=t("s1byLS3P");const M=()=>e.createElement(u.$4,{title:"Edit Authenticators"},e.createElement(y.Z,null),e.createElement(u.mr,{title:"Edit Authenticators",actions:e.createElement(s.Z,null),documentationLink:{title:"Authenticators documentation",path:O.Z.PAGES.AUTHENTICATORS}},e.createElement("span",null,"Configure the trusted header authentication.")),e.createElement(o,null))}}]);})();

//# sourceMappingURL=1255d548-4376.86d943ecc614c0b3fe7c.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy