Skip to content
Snippets Groups Projects
Commit 3a4fbcff authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2652 move properties from usermanager.keycloak.* -> kop.keycloak.*

parent 6400580a
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ import javax.validation.constraints.NotBlank; ...@@ -4,7 +4,7 @@ import javax.validation.constraints.NotBlank;
import io.smallrye.config.ConfigMapping; import io.smallrye.config.ConfigMapping;
@ConfigMapping(prefix = "usermanager.keycloak.api") @ConfigMapping(prefix = "kop.keycloak.api")
public interface KeycloakApiProperties { public interface KeycloakApiProperties {
@NotBlank @NotBlank
......
...@@ -31,7 +31,7 @@ class KeycloakApiService { ...@@ -31,7 +31,7 @@ class KeycloakApiService {
@Inject @Inject
KeycloakApiProperties properties; KeycloakApiProperties properties;
@ConfigProperty(name = "keycloak.url") @ConfigProperty(name = "kop.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 = "keycloak.url") @ConfigProperty(name = "kop.keycloak.url")
String keycloakUrl; String keycloakUrl;
@ApplicationScoped @ApplicationScoped
......
...@@ -15,7 +15,7 @@ public class SyncScheduler { ...@@ -15,7 +15,7 @@ public class SyncScheduler {
@Inject @Inject
LockService syncLockService; LockService syncLockService;
@Scheduled(cron = "{usermanager.keycloak.sync.cron}") @Scheduled(cron = "{kop.keycloak.sync.cron}")
public void start() { public void start() {
if (syncLockService.isNotLocked()) { if (syncLockService.isNotLocked()) {
syncService.sync(); syncService.sync();
......
...@@ -6,8 +6,9 @@ quarkus: ...@@ -6,8 +6,9 @@ quarkus:
create-realm: true create-realm: true
realm-name: dev realm-name: dev
realm-path: dev-realm.json realm-path: dev-realm.json
usermanager: kop:
keycloak: keycloak:
url: https://sso.dev.ozg-sh.de/auth
sync: sync:
cron: "0 */10 * * * ?" cron: "0 */10 * * * ?"
api: api:
......
...@@ -2,5 +2,6 @@ quarkus: ...@@ -2,5 +2,6 @@ quarkus:
port: 8082 port: 8082
mongodb: mongodb:
connection-string: mongodb://localhost:27017 connection-string: mongodb://localhost:27017
kop:
keycloak: keycloak:
url: http://localhost:8088 url: http://localhost:8088
\ No newline at end of file
usermanager: kop:
keycloak: keycloak:
url: https://sso.dev.ozg-sh.de/auth
sync: sync:
cron: "* */10 * * * ?" cron: "* */10 * * * ?"
api: api:
...@@ -7,5 +8,3 @@ usermanager: ...@@ -7,5 +8,3 @@ usermanager:
password: S9UEMuLG9y9ev99 password: S9UEMuLG9y9ev99
realm: sh-kiel-dev realm: sh-kiel-dev
organisations-einheit-id-key: organisationseinheitId organisations-einheit-id-key: organisationseinheitId
\ No newline at end of file
keycloak:
url: https://sso.dev.ozg-sh.de/auth
\ No newline at end of file
...@@ -15,8 +15,9 @@ quarkus: ...@@ -15,8 +15,9 @@ quarkus:
fields: fields:
level: level:
field-name: log.level field-name: log.level
usermanager: kop:
keycloak: keycloak:
url: https://sso.dev.ozg-sh.de/auth
sync: sync:
cron: "0 15 13 * * ?" cron: "0 15 13 * * ?"
api: api:
...@@ -26,5 +27,3 @@ usermanager: ...@@ -26,5 +27,3 @@ usermanager:
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
\ No newline at end of file
keycloak:
url: https://sso.dev.ozg-sh.de/auth
\ No newline at end of file
...@@ -6,16 +6,16 @@ import io.quarkus.test.junit.QuarkusTestProfile; ...@@ -6,16 +6,16 @@ import io.quarkus.test.junit.QuarkusTestProfile;
public class KeycloakTestProfile implements QuarkusTestProfile { public class KeycloakTestProfile implements QuarkusTestProfile {
private final String userKey = "usermanager.keycloak.api.user"; private final String userKey = "kop.keycloak.api.user";
private final String userValue = "goofyApiUser"; private final String userValue = "goofyApiUser";
private final String passwordKey = "usermanager.keycloak.api.password"; private final String passwordKey = "kop.keycloak.api.password";
private final String passwordValue = "S9UEMuLG9y9ev99"; private final String passwordValue = "S9UEMuLG9y9ev99";
private final String realmKey = "usermanager.keycloak.api.realm"; private final String realmKey = "kop.keycloak.api.realm";
private final String realmValue = "sh-kiel-dev"; private final String realmValue = "sh-kiel-dev";
private final String urlKey = "keycloak.url"; private final String urlKey = "kop.keycloak.url";
private final String urlValue = "https://sso.dev.ozg-sh.de/auth"; private final String urlValue = "https://sso.dev.ozg-sh.de/auth";
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment