2 lines
8.5 KiB
JavaScript
2 lines
8.5 KiB
JavaScript
|
|
(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[6,15],{548:function(e,s,t){"use strict";t.r(s);t(0),t(522);var c=t(516),a=(t(515),t(11));s.default=function(){return Object(a.jsx)("div",{className:"c-app c-default-layout flex-row align-items-center",children:Object(a.jsx)(c.l,{children:Object(a.jsx)(c.K,{className:"justify-content-center",children:Object(a.jsx)(c.k,{md:"8",children:Object(a.jsxs)(c.i,{children:[Object(a.jsx)(c.f,{className:"p-4",children:Object(a.jsx)(c.g,{children:Object(a.jsxs)(c.s,{children:[Object(a.jsx)("h1",{children:"\u30ed\u30b0\u30a4\u30f3"}),Object(a.jsx)("p",{className:"text-muted",children:"SSO\u3067\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u306b\u306f\u3001\u3053\u3053\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044"}),Object(a.jsx)(c.K,{children:Object(a.jsx)(c.k,{children:Object(a.jsx)(c.e,{color:"primary",className:"px-4",onClick:function(){console.log("launch sso"),window.open("https://fbssso.bizside.biz/Shibboleth.sso/Login","_self")},children:"SSO\u3067\u30ed\u30b0\u30a4\u30f3"})})})]})})}),Object(a.jsx)(c.f,{className:"text-white bg-primary py-5 d-md-down-none",style:{width:"44%"},children:Object(a.jsx)(c.g,{className:"text-center",children:Object(a.jsxs)("div",{children:[Object(a.jsx)("h2",{children:"\u30ed\u30b0\u30a4\u30f3\u65b9\u6cd5"}),Object(a.jsx)("p",{children:"\u3053\u308c\u306fSSO\u30ed\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001SSO\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002"})]})})})]})})})})})}},657:function(e,s,t){"use strict";t.r(s);var c=t(0),a=t.n(c),n=t(522),i=t.n(n),o=t(14),l=t(516);const r=a.a.lazy((()=>t.e(9).then(t.bind(null,652)))),d=a.a.lazy((()=>Promise.all([t.e(5),t.e(7)]).then(t.bind(null,653)))),j=a.a.lazy((()=>t.e(8).then(t.bind(null,654)))),b=a.a.lazy((()=>t.e(14).then(t.bind(null,655))));var h=[{path:"/",exact:!0,name:"Home"},{path:"/dashboard",name:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9",component:r},{path:"/reports",exact:!0,name:"\u30ec\u30dd\u30fc\u30c8",component:d},{path:"/uploader",exact:!0,name:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9",component:j},{path:"/secret",exact:!0,name:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9",component:b}],m=(t(548),t(11));const O=Object(m.jsx)("div",{className:"pt-3 text-center",children:Object(m.jsx)("div",{className:"sk-spinner sk-spinner-pulse",children:" "})}),x=()=>{const[e,s]=Object(c.useState)(""),[t,a]=Object(c.useState)(""),[n,r]=Object(c.useState)(""),[d,j]=Object(c.useState)(!1),[b,x]=Object(c.useState)(!1),[p,u]=Object(c.useState)(!1);async function f(){const t=await i()("https://fbssso.bizside.biz/Shibboleth.sso/Session");JSON.stringify(e)!==JSON.stringify(t.data)&&s(t.data)}function N(){const s=function(e){const s="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===s.length)return s.pop().split(";").shift()}("_shibsession_64656661756c7468747470733a2f2f66627373736f2e62697a736964652e62697a2f73686962626f6c657468");if(console.log(s),void 0===s)return j(!0),null;f().then((()=>{null!==e&&async function(){if(null==e.attributes||void 0===e.attributes[0])return!1;const s=e.attributes[0].values[0],c=await i.a.get("https://fbssso.bizside.biz/users?email="+s,{auth:{username:"api",password:"ae4d70740e7549bda4c118d66e845e450da1af7e918e440eaac16497a9f75292"}}).catch((e=>(console.log(e),!1)));return JSON.stringify(t)!==JSON.stringify(c.data[0])&&a(c.data[0]),!0}().then((()=>{if(""===n){let e=Math.floor(1e5+9e5*Math.random());r(e)}j(!0);const e=t.firstname,c=t.lastname,a=t.email,o=t.employee_code,l='[\n {\n "mailadress": "'.concat(a,'",\n "name": "').concat(c," ").concat(e,'",\n "jsessionid": ').concat(n,',\n "_idp_session": "",\n "_opensaml_key": "_shibsession_64656661756c7468747470733a2f2f66627373736f2e62697a736964652e
|
||
|
|
//# sourceMappingURL=6.94d5951b.chunk.js.map
|