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 {
@Inject
KeycloakApiProperties properties;
@ConfigProperty(name = "kop.keycloak.url")
@ConfigProperty(name = "keycloak.url")
String keycloakUrl;
public Stream<User> findAllUser() {
......
......@@ -15,7 +15,7 @@ public class KeycloakProvider {
@Inject
KeycloakApiProperties keycloakConfiguration;
@ConfigProperty(name = "kop.keycloak.url")
@ConfigProperty(name = "keycloak.url")
String keycloakUrl;
@ApplicationScoped
......
......@@ -3,8 +3,6 @@ package de.itvsh.kop.user.sync;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import io.quarkus.scheduler.Scheduled;
import lombok.extern.log4j.Log4j2;
......@@ -17,18 +15,8 @@ public class SyncScheduler {
@Inject
LockService syncLockService;
@ConfigProperty(name = "quarkus.mongodb.connection-string")
String mongodbConnectioString;
@ConfigProperty(name = "quarkus.mongodb.database")
String mongodbDatabase;
@Scheduled(cron = "{kop.keycloak.sync.cron}")
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()) {
syncService.sync();
} else {
......
......@@ -8,7 +8,6 @@ quarkus:
realm-path: dev-realm.json
kop:
keycloak:
url: https://sso.dev.ozg-sh.de/auth
sync:
cron: "0 */10 * * * ?"
api:
......@@ -16,3 +15,5 @@ kop:
password: S9UEMuLG9y9ev99
realm: dev
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:
field-name: log.level
kop:
keycloak:
url: https://sso.dev.ozg-sh.de/auth
sync:
cron: "0 15 13 * * ?"
api:
......@@ -27,3 +26,5 @@ kop:
organisations-einheit-id-key: organisationseinheitId
ldap-id-key: LDAP_ID
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