Skip to content

Commit

Permalink
UPDATE main with login
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaFM committed Nov 20, 2024
1 parent ac1208f commit 634c6da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ARG VRE_URI=https://dev-openebench.bsc.es/vre/home/
ARG OBSERVATORY_URI=https://observatory.openebench.bsc.es
ARG REST_API_URL=https://dev-openebench.bsc.es/monitor/rest/
ARG SCIENTIFIC_SERVICE_URL=https://dev-openebench.bsc.es/api/scientific/
ARG SCIENTIFIC_SERVICE_URL_API=https://dev-openebench.bsc.es/api/scientific/
ARG BENCH_EVENT_API_URL=https://dev-openebench.bsc.es/rest/bench_event_api
ARG KEYCLOAK_HOST=https://inb.bsc.es
ARG KEYCLOAK_REALM=dev-openebench
Expand All @@ -22,6 +23,7 @@ ENV VRE_URI $VRE_URI
ENV OBSERVATORY_URI $OBSERVATORY_URI
ENV REST_API_URL $REST_API_URL
ENV NUXT_SCIENTIFIC_SERVICE_URL $SCIENTIFIC_SERVICE_URL
ENV SCIENTIFIC_SERVICE_URL_API $SCIENTIFIC_SERVICE_URL_API
ENV BENCH_EVENT_API_URL $BENCH_EVENT_API_URL
ENV KEYCLOAK_HOST $KEYCLOAK_HOST
ENV KEYCLOAK_REALM $KEYCLOAK_REALM
Expand Down
2 changes: 2 additions & 0 deletions pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ onMounted(() => {
const idToken = params.get("id_token");
const expiresIn = params.get("expires_in");
console.log("Access token:", accessToken);
// Envía los tokens al servidor o almacénalos en el cliente
if (accessToken && idToken) {
// Ejemplo: Envía los tokens al servidor para iniciar una sesión
Expand Down

0 comments on commit 634c6da

Please sign in to comment.