made ws addres parametric to infrastructure
This commit is contained in:
parent
c95b62b1d4
commit
ef6ab169df
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue