Skip to content
Snippets Groups Projects
Commit 57e79d7f authored by OZGCloud's avatar OZGCloud
Browse files

remove log and moving property

parent 2f43ad2b
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ class KeycloakApiService { ...@@ -31,7 +31,7 @@ class KeycloakApiService {
@Inject @Inject
KeycloakApiProperties properties; KeycloakApiProperties properties;
@ConfigProperty(name = "kop.keycloak.url") @ConfigProperty(name = "keycloak.url")
String keycloakUrl; String keycloakUrl;
public Stream<User> findAllUser() { public Stream<User> findAllUser() {
......
...@@ -15,7 +15,7 @@ public class KeycloakProvider { ...@@ -15,7 +15,7 @@ public class KeycloakProvider {
@Inject @Inject
KeycloakApiProperties keycloakConfiguration; KeycloakApiProperties keycloakConfiguration;
@ConfigProperty(name = "kop.keycloak.url") @ConfigProperty(name = "keycloak.url")
String keycloakUrl; String keycloakUrl;
@ApplicationScoped @ApplicationScoped
......
...@@ -3,8 +3,6 @@ package de.itvsh.kop.user.sync; ...@@ -3,8 +3,6 @@ package de.itvsh.kop.user.sync;
import javax.enterprise.context.ApplicationScoped; import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject; import javax.inject.Inject;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import io.quarkus.scheduler.Scheduled; import io.quarkus.scheduler.Scheduled;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
...@@ -17,18 +15,8 @@ public class SyncScheduler { ...@@ -17,18 +15,8 @@ public class SyncScheduler {
@Inject @Inject
LockService syncLockService; LockService syncLockService;
@ConfigProperty(name = "quarkus.mongodb.connection-string")
String mongodbConnectioString;
@ConfigProperty(name = "quarkus.mongodb.database")
String mongodbDatabase;
@Scheduled(cron = "{kop.keycloak.sync.cron}") @Scheduled(cron = "{kop.keycloak.sync.cron}")
public void start() { public void start() {
LOG.info("Environment variables(Key-Value):");
LOG.info("----------------------------");
LOG.info("quarkus.mongodb.connection-string: ", mongodbConnectioString);
LOG.info("quarkus.mongodb.database: ", mongodbDatabase);
if (syncLockService.isNotLocked()) { if (syncLockService.isNotLocked()) {
syncService.sync(); syncService.sync();
} else { } else {
......
...@@ -8,7 +8,6 @@ quarkus: ...@@ -8,7 +8,6 @@ quarkus:
realm-path: dev-realm.json realm-path: dev-realm.json
kop: kop:
keycloak: keycloak:
url: https://sso.dev.ozg-sh.de/auth
sync: sync:
cron: "0 */10 * * * ?" cron: "0 */10 * * * ?"
api: api:
...@@ -16,3 +15,5 @@ kop: ...@@ -16,3 +15,5 @@ kop:
password: S9UEMuLG9y9ev99 password: S9UEMuLG9y9ev99
realm: dev realm: dev
organisations-einheit-id-key: organisationsEinheitId organisations-einheit-id-key: organisationsEinheitId
keycloak:
url: https://sso.dev.ozg-sh.de/auth
\ No newline at end of file
...@@ -17,7 +17,6 @@ quarkus: ...@@ -17,7 +17,6 @@ quarkus:
field-name: log.level field-name: log.level
kop: kop:
keycloak: keycloak:
url: https://sso.dev.ozg-sh.de/auth
sync: sync:
cron: "0 15 13 * * ?" cron: "0 15 13 * * ?"
api: api:
...@@ -27,3 +26,5 @@ kop: ...@@ -27,3 +26,5 @@ kop:
organisations-einheit-id-key: organisationseinheitId organisations-einheit-id-key: organisationseinheitId
ldap-id-key: LDAP_ID ldap-id-key: LDAP_ID
client: sh-kiel-dev-goofy client: sh-kiel-dev-goofy
keycloak:
url: https://sso.dev.ozg-sh.de/auth
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment