Files
openmaxio-object-browser/portal-ui/build/static/js/2516.4778e30a.chunk.js
Alex 65575751ff Release v0.24.0 (#2679)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2023-02-28 12:53:47 -08:00

2 lines
9.8 KiB
JavaScript

"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2516],{70827:function(e,r,i){var t=i(4942),n=i(29439),o=i(1413),a=i(72791),l=i(11135),s=i(25787),c=i(61889),d=i(64554),p=i(23814),u=i(21435),f=i(75952),h=i(57689),x=i(25469),m=i(87995),g=i(9505),y=i(74794),b=i(50896),D=i(37516),v=i(47974),C=i(80184);r.Z=(0,s.Z)((function(e){return(0,l.Z)((0,o.Z)((0,o.Z)({},p.DF),p.oO))}))((function(e){var r=e.classes,i=e.icon,l=e.helpBox,s=e.header,p=e.backLink,Z=e.title,j=e.formFields,I=e.endpoint,k=(0,o.Z)({name:{required:!0,hasError:function(e,r){return!e&&r?"Config Name is required":""},label:"Name",tooltip:"Name for identity provider configuration",placeholder:"Name",type:"text"}},j),_=(0,h.s0)(),q=(0,x.TL)(),E=(0,a.useState)({}),S=(0,n.Z)(E,2),P=S[0],N=S[1],w=(0,g.Z)((function(e){_(p),q((0,m.cN)(!0===e.restart))}),(function(e){return q((0,m.Ih)(e))})),L=(0,n.Z)(w,2),O=L[0],B=L[1],A=function(e,r){return"toggle"===r.type?(0,C.jsx)(D.Z,{indicatorLabels:["Enabled","Disabled"],checked:"on"===P[e],value:"is-field-enabled",id:"is-field-enabled",name:"is-field-enabled",label:r.label,tooltip:r.tooltip,onChange:function(r){return N((0,o.Z)((0,o.Z)({},P),{},(0,t.Z)({},e,r.target.checked?"on":"off")))},description:""}):(0,C.jsx)(u.Z,{id:e,required:r.required,name:e,label:r.label,tooltip:r.tooltip,error:r.hasError(P[e],!0),value:P[e]?P[e]:"",onChange:function(r){return N((0,o.Z)((0,o.Z)({},P),{},(0,t.Z)({},e,r.target.value)))},placeholder:r.placeholder,type:r.type})};return(0,C.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,C.jsx)(v.Z,{label:(0,C.jsx)(f.hbI,{onClick:function(){return _(p)},label:s})}),(0,C.jsx)(y.Z,{children:(0,C.jsxs)(d.Z,{sx:{display:"grid",padding:"25px",gap:"25px",gridTemplateColumns:{md:"2fr 1.2fr",xs:"1fr"},border:"1px solid #eaeaea"},children:[(0,C.jsxs)(d.Z,{children:[(0,C.jsx)(b.Z,{icon:i,children:Z}),(0,C.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){e.preventDefault();for(var r=P.name,i="",t=0,n=Object.keys(j);t<n.length;t++){var o=n[t];P[o]&&(i+="".concat(o,"=").concat(P[o]," "))}B("POST",I,{name:r,input:i})}(e)},children:(0,C.jsx)(c.ZP,{container:!0,item:!0,spacing:"20",sx:{marginTop:1},children:(0,C.jsxs)(c.ZP,{xs:12,item:!0,children:[Object.entries(k).map((function(e){var i=(0,n.Z)(e,2),t=i[0],o=i[1];return(0,C.jsx)(c.ZP,{item:!0,xs:12,className:r.formFieldRow,children:A(t,o)},t)})),(0,C.jsx)(c.ZP,{item:!0,xs:12,textAlign:"right",children:(0,C.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:"20px",gap:"15px"},children:[(0,C.jsx)(f.zxk,{id:"clear",type:"button",variant:"regular",onClick:function(){N({})},label:"Clear"}),(0,C.jsx)(f.zxk,{id:"save-key",type:"submit",variant:"callAction",color:"primary",disabled:O||!function(){for(var e=0,r=Object.entries(k);e<r.length;e++){var i=(0,n.Z)(r[e],2),t=i[0];if(i[1].required&&(void 0===P[t]||null===P[t]||""===P[t]))return!1}return!0}(),label:"Save"})]})})]})})})]}),l]})})]})}))},37099:function(e,r,i){var t=i(72791),n=i(64554),o=i(75952),a=i(80184),l=function(e){var r=e.icon,i=e.description;return(0,a.jsxs)(n.Z,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[r," ",(0,a.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:i})]})};r.Z=function(e){var r=e.helpText,i=e.docLink,s=e.docText,c=e.contents;return(0,a.jsxs)(n.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px"},children:[(0,a.jsxs)(n.Z,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px",paddingBottom:"20px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,a.jsx)(o.M9A,{}),(0,a.jsx)("div",{children:r})]}),(0,a.jsxs)(n.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:[c.map((function(e){return(0,a.jsxs)(t.Fragment,{children:[e.icon&&(0,a.jsx)(n.Z,{sx:{paddingBottom:"20px"},children:(0,a.jsx)(l,{icon:e.icon,description:e.iconDescription})}),(0,a.jsx)(n.Z,{sx:{paddingBottom:"20px"},children:e.text})]})})),(0,a.jsx)(n.Z,{sx:{paddingBottom:"20px"},children:(0,a.jsx)("a",{href:i,target:"_blank",rel:"noopener",children:s})})]})]})}},52516:function(e,r,i){i.r(r);i(72791);var t=i(56087),n=i(75952),o=i(70827),a=i(79979),l=i(37099),s=i(80184);r.default=function(){return(0,s.jsx)(o.Z,{icon:(0,s.jsx)(n.mBM,{}),helpBox:(0,s.jsx)(l.Z,{helpText:"Learn more about OpenID Connect Configurations",contents:a.f4,docLink:"https://min.io/docs/minio/linux/operations/external-iam.html?ref=con#minio-external-iam-oidc",docText:"Learn more about OpenID Connect Configurations"}),header:"OpenID Configurations",backLink:t.gA.IDP_OPENID_CONFIGURATIONS,title:"Create OpenID Configuration",endpoint:"/api/v1/idp/openid/",formFields:a.DY})}},79979:function(e,r,i){i.d(r,{DY:function(){return s},Si:function(){return a},f4:function(){return l},iR:function(){return c}});var t=i(50521),n=i(75952),o=i(80184),a=[{text:"MinIO supports using an Active Directory or LDAP (AD/LDAP) service for external management of user identities. Configuring an external IDentity Provider (IDP) enables Single-Sign On (SSO) workflows, where applications authenticate against the external IDP before accessing MinIO.",icon:(0,o.jsx)(t.Z,{}),iconDescription:"Create Configurations"},{text:"MinIO queries the configured Active Directory / LDAP server to verify the credentials specified by the application and optionally return a list of groups in which the user has membership. MinIO supports two modes (Lookup-Bind Mode and Username-Bind Mode) for performing these queries",icon:null,iconDescription:""},{text:"MinIO recommends using Lookup-Bind mode as the preferred method for verifying AD/LDAP credentials. Username-Bind mode is a legacy method retained for backwards compatibility only.",icon:null,iconDescription:""}],l=[{text:"MinIO supports using an OpenID Connect (OIDC) compatible IDentity Provider (IDP) such as Okta, KeyCloak, Dex, Google, or Facebook for external management of user identities.",icon:(0,o.jsx)(n.mBM,{}),iconDescription:"Create Configurations"},{text:"Configuring an external IDP enables Single-Sign On workflows, where applications authenticate against the external IDP before accessing MinIO.",icon:null,iconDescription:""}],s={config_url:{required:!0,hasError:function(e,r){return!e&&r?"Config URL is required":""},label:"Config URL",tooltip:"Config URL for identity provider configuration",placeholder:"https://identity-provider-url/.well-known/openid-configuration",type:"text"},client_id:{required:!0,hasError:function(e,r){return!e&&r?"Client ID is required":""},label:"Client ID",tooltip:"Identity provider Client ID",placeholder:"Enter Client ID",type:"text"},client_secret:{required:!0,hasError:function(e,r){return!e&&r?"Client Secret is required":""},label:"Client Secret",tooltip:"Identity provider Client Secret",placeholder:"Enter Client Secret",type:"password"},claim_name:{required:!1,label:"Claim Name",tooltip:"Claim from which MinIO will read the policy or role to use",placeholder:"Enter Claim Name",type:"text",hasError:function(e,r){return""}},display_name:{required:!1,label:"Display Name",tooltip:"",placeholder:"Enter Display Name",type:"text",hasError:function(e,r){return""}},claim_prefix:{required:!1,label:"Claim Prefix",tooltip:"",placeholder:"Enter Claim Prefix",type:"text",hasError:function(e,r){return""}},scopes:{required:!1,label:"Scopes",tooltip:"",placeholder:"openid,profile,email",type:"text",hasError:function(e,r){return""}},redirect_uri:{required:!1,label:"Redirect URI",tooltip:"",placeholder:"https://console-endpoint-url/oauth_callback",type:"text",hasError:function(e,r){return""}},role_policy:{required:!1,label:"Role Policy",tooltip:"",placeholder:"readonly",type:"text",hasError:function(e,r){return""}},claim_userinfo:{required:!1,label:"Claim User Info",tooltip:"",placeholder:"Claim User Info",type:"toggle",hasError:function(e,r){return""}},redirect_uri_dynamic:{required:!1,label:"Redirect URI Dynamic",tooltip:"",placeholder:"Redirect URI Dynamic",type:"toggle",hasError:function(e,r){return""}}},c={server_addr:{required:!0,hasError:function(e,r){return!e&&r?"Server Address is required":""},label:"Server Address",tooltip:'AD/LDAP server address e.g. "myldapserver.com:636"',placeholder:"myldapserver.com:636",type:"text"},lookup_bind_dn:{required:!0,hasError:function(e,r){return!e&&r?"Lookup Bind DN is required":""},label:"Lookup Bind DN",tooltip:"DN for LDAP read-only service account used to perform DN and group lookups",placeholder:"cn=admin,dc=min,dc=io",type:"text"},lookup_bind_password:{required:!0,hasError:function(e,r){return!e&&r?"Lookup Bind Password is required":""},label:"Lookup Bind Password",tooltip:"Password for LDAP read-only service account used to perform DN and group lookups",placeholder:"admin",type:"password"},user_dn_search_base_dn:{required:!0,hasError:function(e,r){return!e&&r?"User DN Search Base DN is required":""},label:"User DN Search Base",tooltip:"",placeholder:"DC=example,DC=net",type:"text"},user_dn_search_filter:{required:!0,hasError:function(e,r){return!e&&r?"User DN Search Filter is required":""},label:"User DN Search Filter",tooltip:"",placeholder:"(sAMAcountName=%s)",type:"text"},display_name:{required:!1,label:"Display Name",tooltip:"",placeholder:"Enter Display Name",type:"text",hasError:function(e,r){return""}},group_search_base_dn:{required:!1,hasError:function(e,r){return""},label:"Group Search Base DN",tooltip:"",placeholder:"ou=swengg,dc=min,dc=io",type:"text"},group_search_filter:{required:!1,hasError:function(e,r){return""},label:"Group Search Filter",tooltip:"",placeholder:"(&(objectclass=groupofnames)(member=%d))",type:"text"}}},50521:function(e,r,i){var t=i(64836);r.Z=void 0;var n=t(i(45649)),o=i(80184),a=(0,n.default)((0,o.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login");r.Z=a}}]);
//# sourceMappingURL=2516.4778e30a.chunk.js.map