Commit 08927732 authored by Iker Hurtado's avatar Iker Hurtado
Browse files

Guest user token definitive change

parent fd011554
Pipeline #27344 passed with stages
in 5 seconds
......@@ -114,10 +114,9 @@ var USER_COOKIE_DOMAIN='localhost';if(document.location.href.indexOf('nomad-coe.
API_HOST='https://encyclopedia-api.nomad-coe.eu/';USER_COOKIE_DOMAIN='.nomad-coe.eu';}// testing environment and local installations (docker containers) of full Encyclopedia stack
else if(document.location.href.indexOf('gui')>0){API_HOST='/';// USER_COOKIE_DOMAIN = 'localhost';
if(document.location.href.indexOf('testing-nomad')>0)// testing online server
USER_COOKIE_DOMAIN='.mpg.de';}console.log('API host: ',API_HOST,' USER_COOKIE_DOMAIN: ',USER_COOKIE_DOMAIN);var API_BASE_URL=API_HOST+'v1.0/';document.querySelector('#guest-user a').href=API_BASE_URL+'saml/?sso2';var AUTH_REQUEST_HEADER_GUEST_USER='Basic '+//btoa('eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5MjA3MDI5MCwiZXhwIjoxNTIzNjI3ODkwfQ.ey'+
//'JpZCI6ImVuY2d1aSJ9.oXYwGrLHRxdvKRal1NaAJJ5tCVTDupB5SjAGTtJVDKU:');
btoa('eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.ey'+'JpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs:');//eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.eyJpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs
// Mockup URLs
USER_COOKIE_DOMAIN='.mpg.de';}console.log('API host: ',API_HOST,' USER_COOKIE_DOMAIN: ',USER_COOKIE_DOMAIN);var API_BASE_URL=API_HOST+'v1.0/';document.querySelector('#guest-user a').href=API_BASE_URL+'saml/?sso2';var AUTH_REQUEST_HEADER_GUEST_USER='Basic '+//btoa('eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.ey'+
//'JpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs:');
btoa('eyJhbGciOiJIUzI1NiIsImlhdCI6MTUyMzg4MDE1OSwiZXhwIjoxNjgxNTYwMTU5fQ.ey'+'JpZCI6ImVuY2d1aSJ9.MsMWQa3IklH7cQTxRaIRSF9q8D_2LD5Fs2-irpWPTp4:');// Mockup URLs
//const FERMI_SURFACE_URL= HOST+'files/fermi/'+
//'fed3fa9fbc68aa6c5e51845396889666ca37bb2e626e1da53.x3d';
var BAND_STRUCT_EXAMPLE_URL=API_BASE_URL+'materials/108541/calculations/290737';var MAT_VIEW={'structure':'structure','electronicstruct':'electronicstruct','methodology':'methodology','thermalprops':'thermalprops','elasticconst':'elasticconst'};var ELEMENTS=['H','He','Li','Be','B','C','N','O','F','Ne','Na','Mg','Al','Si',// Si = 14
......
......@@ -440,13 +440,10 @@
document.querySelector('#guest-user a').href = API_BASE_URL+'saml/?sso2';
const AUTH_REQUEST_HEADER_GUEST_USER = 'Basic '+
//btoa('eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5MjA3MDI5MCwiZXhwIjoxNTIzNjI3ODkwfQ.ey'+
//'JpZCI6ImVuY2d1aSJ9.oXYwGrLHRxdvKRal1NaAJJ5tCVTDupB5SjAGTtJVDKU:');
btoa('eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.ey'+
'JpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs:');
//eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.eyJpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs
//btoa('eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.ey'+
//'JpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs:');
btoa('eyJhbGciOiJIUzI1NiIsImlhdCI6MTUyMzg4MDE1OSwiZXhwIjoxNjgxNTYwMTU5fQ.ey'+
'JpZCI6ImVuY2d1aSJ9.MsMWQa3IklH7cQTxRaIRSF9q8D_2LD5Fs2-irpWPTp4:');
// Mockup URLs
......
......@@ -29,13 +29,10 @@ const API_BASE_URL= API_HOST+'v1.0/';
document.querySelector('#guest-user a').href = API_BASE_URL+'saml/?sso2';
const AUTH_REQUEST_HEADER_GUEST_USER = 'Basic '+
//btoa('eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5MjA3MDI5MCwiZXhwIjoxNTIzNjI3ODkwfQ.ey'+
//'JpZCI6ImVuY2d1aSJ9.oXYwGrLHRxdvKRal1NaAJJ5tCVTDupB5SjAGTtJVDKU:');
btoa('eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.ey'+
'JpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs:');
//eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.eyJpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs
//btoa('eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.ey'+
//'JpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs:');
btoa('eyJhbGciOiJIUzI1NiIsImlhdCI6MTUyMzg4MDE1OSwiZXhwIjoxNjgxNTYwMTU5fQ.ey'+
'JpZCI6ImVuY2d1aSJ9.MsMWQa3IklH7cQTxRaIRSF9q8D_2LD5Fs2-irpWPTp4:');
// Mockup URLs
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment