lefteris 3 years ago
parent
commit
282bc362ec
  1. 10
      src/components/doclive/runLlo.vue

10
src/components/doclive/runLlo.vue

@ -495,18 +495,20 @@ export default {
try { try {
var token = value; var token = value;
var pipelines = { var pipelines = {
source: "ssologin", source: token,
}; };
var params = { var params = {
pipeline: pipelines, run: pipelines,
}; };
var options = { var options = {
headers: { headers: {
"content-type": "application/x-www-form-urlencoded", "content-type": "application/json",
// rejectUnauthorized: false,
Authorization: `Bearer ${token}`, Authorization: `Bearer ${token}`,
}, },
}; };
var res = await axios.post( var res = await axios.post(
"https://api.swarmlab.io/istokenvalidsso", "https://api.swarmlab.io/istokenvalidsso",
params, params,
@ -752,7 +754,7 @@ export default {
created() { created() {
//var logintoken = new URL(location.href).searchParams.get("token"); //var logintoken = new URL(location.href).searchParams.get("token");
var logintoken = new URL( var logintoken = new URL(
"https://api-client.swarmlab.io:8088/?token=08b677fbc99c39e100b5b64e90e1d7d77c3e3e7c" "https://api-client.swarmlab.io:8088/?token=de10ccdc027cd26161b3c1923098e436d56882f0"
).searchParams.get("token"); ).searchParams.get("token");
this.logintoken = logintoken; this.logintoken = logintoken;
// === We get the user + check for the token if exists // === We get the user + check for the token if exists

Loading…
Cancel
Save