File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ git clone https://github.com/DiamondLightSource/TomoHub
3939In ` frontend/ ` , add an ` .env.local ` file with the following contents:
4040```
4141VITE_API_BASE_URL = "http://localhost:8000"
42- VITE_KEYCLOAK_CLIENT_ID = "tomohub-dev"
42+ VITE_KEYCLOAK_URL = "https://identity-test.diamond.ac.uk"
43+ VITE_KEYCLOAK_REALM = "dls"
44+ VITE_KEYCLOAK_CLIENT_ID = "TomoHubDev"
4345```
4446
4547#### Install dependencies and generate code from GraphQL schema
Original file line number Diff line number Diff line change 11VITE_API_BASE_URL = " /api"
2- VITE_KEYCLOAK_CLIENT_ID = " tomohub"
2+ VITE_KEYCLOAK_URL = " https://identity.diamond.ac.uk"
3+ VITE_KEYCLOAK_REALM = " dls"
4+ VITE_KEYCLOAK_CLIENT_ID = " TomoHub"
Original file line number Diff line number Diff line change 11import Keycloak from "keycloak-js" ;
22
33const keycloakConfig = {
4- url : "https://authn.diamond.ac.uk/" ,
5- realm : "master" ,
4+ url : import . meta . env . VITE_KEYCLOAK_URL ,
5+ realm : import . meta . env . VITE_KEYCLOAK_REALM ,
66 clientId : import . meta. env . VITE_KEYCLOAK_CLIENT_ID ,
77} ;
88
You can’t perform that action at this time.
0 commit comments