added user api
This commit is contained in:
@ -33,7 +33,9 @@ const TheContent = () => {
|
||||
|
||||
// You can await here
|
||||
const result = await axios('https://fsbsso.sumasen.net/Shibboleth.sso/Session');
|
||||
setSsoSession(result.data);
|
||||
if(SsoSession !== result.data) {
|
||||
setSsoSession(result.data);
|
||||
}
|
||||
}
|
||||
|
||||
async function fetchUser() {
|
||||
@ -65,6 +67,8 @@ const TheContent = () => {
|
||||
|
||||
function get_token_from_storage_or_cookie() {
|
||||
|
||||
console.log("calling ..");
|
||||
|
||||
//localStorage.setItem('state', 'off');
|
||||
|
||||
// const data = '{ "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" ] } ] }'
|
||||
@ -90,6 +94,7 @@ const TheContent = () => {
|
||||
// } else {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
fetchUser().then(() => {
|
||||
console.log('requesting user data');
|
||||
console.log(UserData);
|
||||
|
||||
Reference in New Issue
Block a user