master #18

Merged
m.lettere merged 12 commits from master into prod 2024-06-14 12:47:54 +02:00
1 changed files with 7 additions and 1 deletions
Showing only changes of commit ef6ab169df - Show all commits

View File

@ -637,7 +637,13 @@ class CCPExecutionHistory extends HTMLElement {
async initWorkspace(){
if(!this.#ws){
const wsurl = "https://workspace-repository.dev.d4science.org/storagehub/workspace"
const iss = document.querySelector("d4s-boot-2").loginToken.iss;
const addresses = {
"https://accounts.dev.d4science.org/auth/realms/d4science": "https://workspace-repository.dev.d4science.org/storagehub/workspace",
"https://accounts.pre.d4science.org/auth/realms/d4science": "https://pre.d4science.org/workspace",
"https://accounts.d4science.org/auth/realms/d4science": "https://api.d4science.org/workspace"
};
const wsurl = addresses[iss]
this.#ws = new D4SWorkspace(wsurl, this.#boot)
}