Skip to content

Commit

Permalink
Merge branch 'feature/437468_realm_strapi' into 'develop'
Browse files Browse the repository at this point in the history
feature/437468_realm_strapi

See merge request upm-inesdata/inesdata-public-portal-backend!7
  • Loading branch information
Samuel Sierra Silva committed Aug 5, 2024
2 parents 664339a + 85150d3 commit 44b7a8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/inesdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = ({ env }) => ({
tokenClientId: env('TOKEN_CLIENT_ID', 'dataspace-users'),
tokenUsername: env('TOKEN_USERNAME', 'user-c1'),
tokenPassword: env('TOKEN_PASSWORD', 'user-c1'),
keycloakBaseUrl: env('KEYCLOAK_BASE_URL', 'http://keycloak:8080'),
keycloakBaseUrl: env('KEYCLOAK_BASE_URL', 'http://keycloak:8080/realms/dataspace'),
catalogBaseUrl: env('CATALOG_BASE_URL', 'http://connector-c1:19193'),
vocabulariesBaseUrl: env('VOCABULARIES_BASE_URL', 'http://connector-c1:19196')
})
4 changes: 2 additions & 2 deletions src/api/services/token-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const getTokenFromAuthServer = async () => {
params.append('username', process.env.TOKEN_USERNAME);
params.append('password', process.env.TOKEN_PASSWORD);

const tokenUrl = `${process.env.KEYCLOAK_BASE_URL}/realms/dataspace/protocol/openid-connect/token`;
const tokenUrl = `${process.env.KEYCLOAK_BASE_URL}/protocol/openid-connect/token`;

const response = await axios.post(tokenUrl, params);
const data = response.data;
Expand All @@ -43,7 +43,7 @@ const refreshToken = async () => {
params.append('client_id', process.env.TOKEN_CLIENT_ID);
params.append('refresh_token', tokenData.refreshToken);

const tokenUrl = `${process.env.KEYCLOAK_BASE_URL}/realms/dataspace/protocol/openid-connect/token`;
const tokenUrl = `${process.env.KEYCLOAK_BASE_URL}/protocol/openid-connect/token`;

const response = await axios.post(tokenUrl, params);
const data = response.data;
Expand Down

0 comments on commit 44b7a8c

Please sign in to comment.