Skip to content

Commit

Permalink
fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Oct 6, 2024
1 parent f7e7fdc commit b5dffc4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,14 @@
"clientId" : "hephaestus",
"name" : "",
"description" : "",
"rootUrl" : "https://hephaestus.ase.cit.tum.de",
"rootUrl" : "http://localhost:4200",
"adminUrl" : "",
"baseUrl" : "",
"surrogateAuthRequired" : false,
"enabled" : true,
"alwaysDisplayInConsole" : false,
"clientAuthenticatorType" : "client-secret",
"redirectUris" : [ "https://hephaestus.ase.cit.tum.de/*" ],
"redirectUris" : [ "https://localhost:4200/*" ],
"webOrigins" : [ "+" ],
"notBefore" : 0,
"bearerOnly" : false,
Expand All @@ -600,7 +600,7 @@
"realm_client" : "false",
"oidc.ciba.grant.enabled" : "false",
"backchannel.logout.session.required" : "true",
"post.logout.redirect.uris" : "https://hephaestus.ase.cit.tum.de/*",
"post.logout.redirect.uris" : "https://localhost:4200/*",
"display.on.consent.screen" : "false",
"oauth2.device.authorization.grant.enabled" : "false",
"backchannel.logout.revoke.offline.tokens" : "false"
Expand All @@ -615,15 +615,15 @@
"clientId" : "hephaestus-confidential",
"name" : "",
"description" : "",
"rootUrl" : "https://api.hephaestus.felixdietrich.com",
"adminUrl" : "https://api.hephaestus.felixdietrich.com",
"baseUrl" : "https://api.hephaestus.felixdietrich.com/",
"rootUrl" : "https://localhost:8080",
"adminUrl" : "https://localhost:8080",
"baseUrl" : "https://localhost:8080/",
"surrogateAuthRequired" : false,
"enabled" : true,
"alwaysDisplayInConsole" : false,
"clientAuthenticatorType" : "client-secret",
"secret" : "0g0QtFmz6GB1Jv03SszCFepPro0hiP7G",
"redirectUris" : [ "https://api.hephaestus.felixdietrich.com/login/oauth2/code/keycloak" ],
"redirectUris" : [ "https://localhost:8080/login/oauth2/code/keycloak" ],
"webOrigins" : [ "+" ],
"notBefore" : 0,
"bearerOnly" : false,
Expand All @@ -640,7 +640,7 @@
"oidc.ciba.grant.enabled" : "false",
"client.secret.creation.time" : "1728160951",
"backchannel.logout.session.required" : "true",
"post.logout.redirect.uris" : "https://api.hephaestus.felixdietrich.com/",
"post.logout.redirect.uris" : "https://localhost:8080/",
"display.on.consent.screen" : "false",
"oauth2.device.authorization.grant.enabled" : "false",
"use.jwks.url" : "false",
Expand Down
1 change: 1 addition & 0 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN export $(grep -v '^#' .env | xargs) && \
echo "Generating environment.prod.ts" && \
cat > src/environments/environment.prod.ts <<EOF
export const environment = {
clientUrl: '${APPLICATION_CLIENT_URL}',
serverUrl: '${APPLICATION_SERVER_URL}',
keycloak: {
url: '${KEYCLOAK_URL}',
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/app/core/security/keycloak.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ export class KeycloakService {
}

logout() {
return this.keycloak.logout({ redirectUri: 'http://localhost:4200' });
return this.keycloak.logout({ redirectUri: environment.clientUrl });
}
}
1 change: 1 addition & 0 deletions webapp/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const environment = {
clientUrl: 'http://localhost:4200',
serverUrl: 'http://localhost:8080',
keycloak: {
url: 'http://localhost:8081',
Expand Down
1 change: 1 addition & 0 deletions webapp/src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const environment = {
clientUrl: 'http://localhost:4200',
serverUrl: 'http://localhost:8080',
keycloak: {
url: 'http://localhost:8081',
Expand Down

0 comments on commit b5dffc4

Please sign in to comment.