From 282bc362ec6ca55332f0bbffd9570894a2dd30ee Mon Sep 17 00:00:00 2001 From: lefteris Date: Tue, 9 Nov 2021 19:31:44 +0200 Subject: [PATCH] 1 --- src/components/doclive/runLlo.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/doclive/runLlo.vue b/src/components/doclive/runLlo.vue index 1b007af..1614631 100644 --- a/src/components/doclive/runLlo.vue +++ b/src/components/doclive/runLlo.vue @@ -495,18 +495,20 @@ export default { try { var token = value; var pipelines = { - source: "ssologin", + source: token, }; var params = { - pipeline: pipelines, + run: pipelines, }; var options = { headers: { - "content-type": "application/x-www-form-urlencoded", + "content-type": "application/json", + // rejectUnauthorized: false, Authorization: `Bearer ${token}`, }, }; + var res = await axios.post( "https://api.swarmlab.io/istokenvalidsso", params, @@ -752,7 +754,7 @@ export default { created() { //var logintoken = new URL(location.href).searchParams.get("token"); var logintoken = new URL( - "https://api-client.swarmlab.io:8088/?token=08b677fbc99c39e100b5b64e90e1d7d77c3e3e7c" + "https://api-client.swarmlab.io:8088/?token=de10ccdc027cd26161b3c1923098e436d56882f0" ).searchParams.get("token"); this.logintoken = logintoken; // === We get the user + check for the token if exists