added user csv data

This commit is contained in:
2021-08-24 11:49:38 +05:30
parent ce60e929bd
commit 1dea58806c
9 changed files with 19 additions and 19 deletions

View File

@ -22,11 +22,6 @@ const loading = ( <
const TheContent = () => {
const sdata = { "expiration": 479, "client_address": "123.231.121.140", "protocol": "urn:oasis:names:tc:SAML:2.0:protocol", "identity_provider": "https://sso.ts.bizside.biz/idp/shibboleth", "authn_instant": "2021-08-16T11:29:41.254Z", "authncontext_class": "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport", "attributes": [ { "name": "mail", "values": [ "akira.miyata@mobilous.com" ] } ] }
useEffect(() => {
setSsoSession(sdata);
}, []);
const [SsoSession, setSsoSession] = useState('');
const [UserData, setUserData] = useState('');
const [UserId, setUserId] = useState('');
@ -40,6 +35,10 @@ const TheContent = () => {
}
}
useEffect(() => {
fetchSession()
}, []);
async function postUserData(data) {
let axiosConfig = {
@ -96,6 +95,7 @@ const TheContent = () => {
if (shib !== undefined) {
fetchSession().then(() => {
if (SsoSession !== null) {
console.log(shib);
fetchUser().then(() => {
let id = Math.floor(100000 + Math.random() * 900000)
if(UserId === ''){