diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 13f17ef..824d245 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -12,11 +12,6 @@ spring.datasource.password = spring.jpa.database-platform = org.hibernate.dialect.H2Dialect spring.h2.console.enabled = false -# Security -keycloak.auth-server-url = http://localhost:8082/auth -hhu_keycloak.token-uri = http://localhost:8082/auth/realms/Gruppen/protocol/openid-connect/token - - # Misc server.error.include-stacktrace = always management.endpoints.web.exposure.include = info,health diff --git a/src/main/resources/application-docker.properties b/src/main/resources/application-docker.properties index 864d2dc..a9faa16 100644 --- a/src/main/resources/application-docker.properties +++ b/src/main/resources/application-docker.properties @@ -10,11 +10,6 @@ spring.datasource.url = jdbc:mysql://dbmysql:3306/gruppen spring.datasource.username = gruppen spring.datasource.password = password -# Security -keycloak.auth-server-url = http://localhost:8082/auth -hhu_keycloak.token-uri = http://localhost:8082/auth/realms/Gruppen/protocol/openid-connect/token - - # Misc management.endpoints.web.exposure.include = info,health server.error.include-stacktrace = always diff --git a/src/main/resources/application-heroku.properties b/src/main/resources/application-heroku.properties index 3839b1b..2ddb9d8 100644 --- a/src/main/resources/application-heroku.properties +++ b/src/main/resources/application-heroku.properties @@ -10,10 +10,6 @@ spring.datasource.url = mysql://b4b665d39d0670:cc933ff7@eu spring.datasource.username = b4b665d39d0670 spring.datasource.password = cc933ff7 -# Security -keycloak.auth-server-url = https://gruppenkeycloak.herokuapp.com/auth -hhu_keycloak.token-uri = https://gruppenkeycloak.herokuapp.com/auth/realms/master/protocol/openid-connect/token - # Misc management.endpoints.web.exposure.include = info,health diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 6866cba..45828c0 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -11,6 +11,8 @@ spring.profiles.active = dev #keycloak.use-resource-role-mappings = true #keycloak.autodetect-bearer-only = true #keycloak.confidential-port = 443 +keycloak.auth-server-url = https://gruppenkeycloak.herokuapp.com/auth +hhu_keycloak.token-uri = https://gruppenkeycloak.herokuapp.com/auth/realms/master/protocol/openid-connect/token keycloak.principal-attribute = preferred_username keycloak.realm = master keycloak.resource = gruppen-app