|
@ -430,18 +430,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, |
|
@ -687,7 +689,11 @@ 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( |
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
"https://api-client.swarmlab.io:8088/?token=de10ccdc027cd26161b3c1923098e436d56882f0" |
|
|
|
|
|
======= |
|
|
"https://api-client.swarmlab.io:8088/?token=1e46b03ddd79f1237404a5e4c5dd487b21f98b1f" |
|
|
"https://api-client.swarmlab.io:8088/?token=1e46b03ddd79f1237404a5e4c5dd487b21f98b1f" |
|
|
|
|
|
>>>>>>> 1abf5ff1b2cc53fd25c04f5da828d402fe2a9f9a |
|
|
).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 |
|
|