1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5869],{10863:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/merge_account_request",function(){return t(94084)}])},18738:function(e,n,t){"use strict";t.d(n,{EZ:function(){return r},Wp:function(){return s},fJ:function(){return apiUpsertOidcConnection},n3:function(){return apiFetchSamlConnectionValues},pj:function(){return apiUpsertSamlConnection}});var o,r,i=t(1448);(o=r||(r={})).Google="Google",o.Rippling="Rippling",o.OneLogin="OneLogin",o.JumpCloud="JumpCloud",o.Okta="Okta",o.Azure="Azure",o.Duo="Duo",o.PingIdentity="PingIdentity",o.Generic="Generic";let s={Google:"Google",Rippling:"Rippling",OneLogin:"OneLogin",JumpCloud:"JumpCloud",Okta:"Okta",Azure:"Entra ID (formerly Azure)",Duo:"Duo",PingIdentity:"Ping Identity",Generic:"Generic"},parseUpsertConnectionResult=e=>e.json().then(e=>({success:!0,data:{connection_id:e.connection_id}})).catch(()=>({success:!0,data:{}})),apiUpsertSamlConnection=async(e,n)=>(0,i.j0)("/api/fe/v3/saml_idp_metadata",e,n).then(e=>e.ok?parseUpsertConnectionResult(e):400===e.status?e.json().then(e=>(0,i.Nr)({idp_entity_id:e.idp_entity_id,idp_sso_url:e.idp_sso_url,idp_certificate:e.idp_certificate})):404===e.status?{success:!1,error_type:"org_not_found"}:(0,i.xo)()),apiUpsertOidcConnection=async(e,n,t)=>n?(0,i.Ll)("/api/fe/v3/oidc_idp_metadata",e,t).then(e=>e.ok?{success:!0,data:{}}:400===e.status?e.json().then(e=>(0,i.Nr)({client_id:e.user_facing_errors.client_id,client_secret:e.user_facing_errors.client_secret,entra_tenant_id:e.user_facing_errors.entra_tenant_id,okta_sso_domain:e.user_facing_errors.okta_sso_domain,auth_url:e.user_facing_errors.auth_url,token_url:e.user_facing_errors.token_url,userinfo_url:e.user_facing_errors.userinfo_url})):404===e.status?{success:!1,error_type:"org_not_found"}:(0,i.xo)()):(0,i.j0)("/api/fe/v3/oidc_idp_metadata",e,t).then(e=>e.ok?parseUpsertConnectionResult(e):400===e.status?e.json().then(e=>(0,i.Nr)({client_id:e.user_facing_errors.client_id,client_secret:e.user_facing_errors.client_secret,entra_tenant_id:e.user_facing_errors.entra_tenant_id,okta_sso_domain:e.user_facing_errors.okta_sso_domain,auth_url:e.user_facing_errors.auth_url,token_url:e.user_facing_errors.token_url,userinfo_url:e.user_facing_errors.userinfo_url})):404===e.status?{success:!1,error_type:"org_not_found"}:(0,i.xo)()),apiFetchSamlConnectionValues=async(e,n,t)=>{let o=t?{connection_id:t}:{};return(0,i.A_)("/api/fe/v3/saml_idp_metadata/".concat(e),o,n).then(e=>e.ok?e.json().then(e=>({success:!0,data:e})):403===e.status?{success:!1,error_type:"forbidden",message:"You do not have permission to update SAML values"}:404===e.status?{success:!1,error_type:"org_not_found"}:(0,i.xo)())}},94084:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return m}});var o=t(85893),r=t(95117),i=t(67841),s=t(20966),a=t(33575),c=t(11163),u=t(67294),_=t(64584),l=t(1448),d=t(47845),p=t(18738),f=t(31908),g=t(54070),h=t(95427),m=!0;n.default=e=>{let{pageConfig:n,token:t,idp:m,social_type:y}=e,{classes:k}=(0,h.fc)(),[C,x]=(0,u.useState)(!1),[S,w]=(0,u.useState)(!1),[E,j]=(0,u.useState)(!1),O=(0,c.useRouter)();(0,u.useEffect)(()=>{t||S||w(!0)},[t,S]);let handleConfirmation=async()=>{if(x(!0),t){let e=await (0,d.K)({token:t});e.success?await O.push("/login"):(a.N9.show({title:"Error",message:l.aK,color:g.xR.ErrorButtonColor,classNames:k}),j(!0),x(!1))}},R=m?"SSO Login":"Social Login";return m&&m in p.Wp&&m!==p.EZ.Generic?R="SSO Login via "+p.Wp[m]:y&&y in _.lR&&(R=_.lR[y]+" Login"),(0,o.jsx)(f.ZP,{pageConfig:n,pageTitle:"Enable ".concat(R),title:S?"":"Enable ".concat(R),showLogo:!0,children:S?(0,o.jsx)(r.x,{color:g.xR.ErrorButtonColor,children:"An unexpected error has occurred. You may have manually copied a link incorrectly, or landed on this page by accident. Please close this window and try again."}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.x,{color:E?g.xR.ErrorButtonColor:"",children:E?"The token you provided may be invalid or expired. Please try to log in again.":"It looks like you're trying to turn on ".concat(R," for your account. Click 'Confirm' to enable and continue to the login page, or close this window if you don't wish to proceed.")}),(0,o.jsx)(i.z,{mt:"lg",fullWidth:!0,variant:g.Bq.LoginPrimary,onClick:handleConfirmation,disabled:E||C,children:C?(0,o.jsx)(s.a,{color:g.xR.LoginSuccessButtonColor,size:"sm"}):"Confirm"})]})})}}},function(e){e.O(0,[3972,7248,9748,7583,9774,2888,179],function(){return e(e.s=10863)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.