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

web-interface.assets.325e2d4b-8538.2dca7d9af0bf1e26adef.js Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
"use strict";(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["325e2d4b-8538"],{OhCiqfIr:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n("KN8gOSc8"),i=n("VHOukFih");const s=(0,i.Z)({action:a.K.create,success:e=>({message:`Authentication service "${e.title} was created successfully`}),error:(e,t)=>({message:`Creating authentication service "${t.title}" failed with status: ${e}`})}),r=(0,i.Z)({action:a.K.load,error:(e,t)=>({message:`Loading authentication service with id "${t}" failed with status: ${e}`}),notFoundRedirect:!0}),l=(0,i.Z)({action:a.K.loadActive,error:e=>({message:`Loading active authentication service failed with status: ${e}`})}),c={create:s,update:(0,i.Z)({action:a.K.update,success:(e,t)=>({message:`Authentication service "${t.title}" was updated successfully`}),error:(e,t,n)=>({message:`Updating authentication service "${n.title}" failed with status: ${e}`})}),load:r,loadActive:l,delete:(0,i.Z)({action:a.K.delete,success:(e,t)=>({message:`Authentication service "${t} was deleted successfully`}),error:(e,t,n)=>({message:`Deleting authentication service "${n}" failed with status: ${e}`})}),testConnection:(0,i.Z)({action:a.K.testConnection,error:e=>({message:`Connection test failed with status: ${e}`})}),testLogin:(0,i.Z)({action:a.K.testLogin,error:e=>({message:`Login test failed with status: ${e}`})}),setActiveBackend:(0,i.Z)({action:a.K.setActiveBackend,success:(e,t)=>({message:`Authentication service "${t} was ${e?"activated":"deactivated"} successfully`}),error:(e,t,n)=>({message:`Activating authentication service "${n}" failed with status: ${e}`})}),loadBackendsPaginated:(0,i.Z)({action:a.K.loadBackendsPaginated,error:e=>({message:`Loading authentication services failed with status: ${e}`})}),loadUsersPaginated:(0,i.Z)({action:a.K.loadUsersPaginated,error:(e,t)=>({message:`Loading synchronized users for authentication service with id "${e}" failed with status: ${t}`})}),loadActiveBackendType:(0,i.Z)({action:a.K.loadActiveBackendType,error:e=>({message:`Loading active authentication service type failed with status: ${e}`})})}},"3KQynTtD":(e,t,n)=>{n.d(t,{Z:()=>i});var a=n("VPaD/Np4");class i{constructor(e,t,n,a,i,s,r,l,c,u,o,d,v,h){this._value={id:e,username:t,fullName:n,email:a,roles:i,readOnly:s,external:r,sessionActive:l,clientAddress:c,lastActivity:u,enabled:o,authServiceId:d,authServiceUid:v,accountStatus:h}}get id(){return this._value.id}get username(){return this._value.username}get name(){return this._value.username}get fullName(){return this._value.fullName}get description(){return this._value.fullName}get email(){return this._value.email}get roles(){return this._value.roles}get readOnly(){return this._value.readOnly}get external(){return this._value.external}get sessionActive(){return this._value.sessionActive}get clientAddress(){return this._value.clientAddress}get lastActivity(){return this._value.lastActivity}get enabled(){return this._value.enabled}get authServiceId(){return this._value.authServiceId}get authServiceUid(){return this._value.authServiceUid}get accountStatus(){return this._value.accountStatus}toBuilder(){const{id:e,username:t,fullName:n,email:i,roles:r,readOnly:l,external:c,sessionActive:u,clientAddress:o,lastActivity:d,enabled:v,authServiceId:h,authServiceUid:g,accountStatus:m}=this._value;return new s(a.Map({id:e,username:t,fullName:n,email:i,roles:r,readOnly:l,external:c,sessionActive:u,clientAddress:o,lastActivity:d,enabled:v,authServiceId:h,authServiceUid:g,accountStatus:m}))}static create(e,t,n,a,s,r,l,c,u,o,d,v,h,g){return new i(e,t,n,a,s,r,l,c,u,o,d,v,h,g)}toJSON(){const{id:e,username:t,fullName:n,email:a,roles:i,readOnly:s,external:r,sessionActive:l,clientAddress:c,lastActivity:u,enabled:o,authServiceId:d,authServiceUid:v,accountStatus:h}=this._value;return{id:e,username:t,full_name:n,email:a,roles:i.toArray(),read_only:s,external_user:r,session_active:l,client_address:c,last_activity:u,enabled:o,auth_service_id:d,auth_service_uid:v,account_status:h}}static fromJSON(e){const{id:t,username:n,full_name:s,email:r,roles:l,read_only:c,external_user:u,session_active:o,client_address:d,last_activity:v,enabled:h,auth_service_id:g,auth_service_uid:m,account_status:p}=e;return i.create(t,n,s,r,a.Set(l),null!=c&&c,null!=u&&u,null!=o&&o,d,v,h,g,m,p)}static builder(){return new s}}class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Map();this.value=e}id(e){return new s(this.value.set("id",e))}username(e){return new s(this.value.set("username",e))}fullName(e){return new s(this.value.set("fullName",e))}email(e){return new s(this.value.set("email",e))}roles(e){return new s(this.value.set("roles",e))}readOnly(e){return new s(this.value.set("readOnly",e))}external(e){return new s(this.value.set("external",e))}sessionActive(e){return new s(this.value.set("sessionActive",e))}clientAddress(e){return new s(this.value.set("clientAddress",e))}lastActivity(e){return new s(this.value.set("lastActivity",e))}enabled(e){return new s(this.value.set("enabled",e))}authServiceId(e){return new s(this.value.set("authServiceId",e))}authServiceUid(e){return new s(this.value.set("authServiceUid",e))}accountStatus(e){return new s(this.value.set("accountStatus",e))}build(){const{id:e,username:t,fullName:n,email:a,roles:s,readOnly:r,external:l,sessionActive:c,clientAddress:u,lastActivity:o,enabled:d,authServiceId:v,authServiceUid:h,accountStatus:g}=this.value.toObject();return new i(e,t,n,a,s,r,l,c,u,o,d,v,h,g)}}},KN8gOSc8:(e,t,n)=>{n.d(t,{K:()=>m});var a=n("JnTtTRmZ"),i=n.n(a),s=n("VPaD/Np4"),r=n("vyyTCD48");class l{constructor(e,t,n,a,i){this._value={id:e,title:t,description:n,defaultRoles:a,config:i}}get id(){return this._value.id}get title(){return this._value.title}get description(){return this._value.description}get defaultRoles(){return this._value.defaultRoles}get config(){return this._value.config}toBuilder(){const{id:e,title:t,description:n,defaultRoles:a,config:i}=this._value;return new c(s.Map({id:e,title:t,description:n,defaultRoles:a,config:i}))}toJSON(){const{id:e,title:t,description:n,defaultRoles:a=s.List(),config:i}=this._value,l=(e=>{const t=(0,r.ih)(e.type,!0);return t&&"function"==typeof t.configToJson?t.configToJson(e):e})(i);return{id:e,title:t,description:n,default_roles:a.toJS(),config:l}}static fromJSON(e){const{id:t,title:n,description:a,default_roles:i,config:c}=e,u=(e=>{const t=(0,r.ih)(e.type,!0);return t&&"function"==typeof t.configFromJson?t.configFromJson(e):e})(c);return new l(t,n,a,s.List(i),u)}static builder(){return new c}}class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.Map();this.value=e}id(e){return new c(this.value.set("id",e))}title(e){return new c(this.value.set("title",e))}description(e){return new c(this.value.set("description",e))}defaultRoles(e){return new c(this.value.set("defaultRoles",e))}config(e){return new c(this.value.set("config",e))}build(){const{id:e,title:t,description:n,defaultRoles:a,config:i}=this.value.toObject();return new l(e,t,n,a,i)}}var u=n("0wQfx7YJ"),o=n("OqsMdpSm"),d=n("xc00RsLr"),v=n("4sldgQy6"),h=n("rkoyttmq"),g=n("3KQynTtD");const m=(0,d.ei)("Authentication",(()=>i().createActions({create:{asyncResult:!0},delete:{asyncResult:!0},load:{asyncResult:!0},loadActive:{asyncResult:!0},loadBackendsPaginated:{asyncResult:!0},loadUsersPaginated:{asyncResult:!0},loadActiveBackendType:{asyncResult:!0},setActiveBackend:{asyncResult:!0},testConnection:{asyncResult:!0},testLogin:{asyncResult:!0},update:{asyncResult:!0}})));(0,d.dS)("Authentication",(()=>i().createStore({listenables:[m],getInitialState:()=>({authenticators:null}),create(e){const t=(0,u.DC)(h.Z.AuthenticationController.create().url),n=(0,o.ZP)("POST",t,e).then((e=>e?{backend:l.fromJSON(e.backend)}:null));return m.create.promise(n),n},load(e){const t=(0,u.DC)(h.Z.AuthenticationController.load(encodeURIComponent(e)).url),n=(0,o.ZP)("GET",t).then((e=>e?{backend:l.fromJSON(e.backend)}:null));return m.load.promise(n),n},loadActive(){const e=(0,u.DC)(h.Z.AuthenticationController.loadActive().url),t=(0,o.ZP)("GET",e).then((e=>e?{backend:e.backend?l.fromJSON(e.backend):null,context:{backendsTotal:e.context.backends_total}}:null));return m.loadActive.promise(t),t},update(e,t){const n=(0,u.DC)(h.Z.AuthenticationController.update(e).url),a=(0,o.ZP)("PUT",n,t).then((e=>e?{backend:l.fromJSON(e.backend)}:null));return m.update.promise(a),a},delete(e){const t=(0,u.DC)(h.Z.AuthenticationController.delete(e).url),n=(0,o.ZP)("DELETE",t);return m.delete.promise(n),n},testConnection(e){const t=(0,u.DC)(h.Z.AuthenticationController.testConnection().url),n=(0,o.ZP)("POST",t,e);return m.testConnection.promise(n),n},testLogin(e){const t=(0,u.DC)(h.Z.AuthenticationController.testLogin().url),n=(0,o.ZP)("POST",t,e);return m.testLogin.promise(n),n},setActiveBackend(e){const t=(0,u.DC)(h.Z.AuthenticationController.updateConfiguration().url),n=(0,o.ZP)("POST",t,{active_backend:e});return m.setActiveBackend.promise(n),n},loadBackendsPaginated(e){let{page:t,perPage:n,query:a}=e;const i=(0,v.Z)(h.Z.AuthenticationController.servicesPaginated().url,t,n,a),r=(0,o.ZP)("GET",(0,u.DC)(i)).then((e=>({context:{activeBackend:e.context.active_backend},list:s.List(e.backends.map((e=>l.fromJSON(e)))),pagination:{page:e.page,perPage:e.per_page,query:e.query,count:e.count,total:e.total}})));return m.loadBackendsPaginated.promise(r),r},loadUsersPaginated(e,t){let{page:n,perPage:a,query:i}=t;const r=(0,v.Z)(h.Z.AuthenticationController.loadUsersPaginated(e).url,n,a,i),l=(0,o.ZP)("GET",(0,u.DC)(r)).then((e=>({list:s.List(e.users.map((e=>g.Z.fromJSON(e)))),pagination:{page:e.page,perPage:e.per_page,query:e.query,count:e.count,total:e.total}})));return m.loadUsersPaginated.promise(l),l},loadActiveBackendType(){const e=(0,u.DC)(h.Z.AuthenticationController.loadActiveBackendType().url),t=new o.Ib("GET",e).build().then((e=>e.json())).then((e=>e.backend));return m.loadActiveBackendType.promise(t),t}})))},vyyTCD48:(e,t,n)=>{n.d(t,{Re:()=>r,ih:()=>i,z$:()=>s});var a=n("AztyBNMT");const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=a.PluginStore.exports("authentication.services")||[],i=n.find((t=>t.name===e));if(!i&&t)throw new Error(`Authentication service with type "${e}" not found.`);return i},s=()=>{const e=a.PluginStore.exports("authentication.enterprise.directoryServices.groupSync");return null==e?void 0:e[0]},r=()=>{const e=a.PluginStore.exports("authentication.enterprise");return null==e?void 0:e[0]}}}]);
//# sourceMappingURL=325e2d4b-8538.2dca7d9af0bf1e26adef.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy