Skip to content
Snippets Groups Projects
Commit 1024055f authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4183 OZG-4583 rename config params

parent f90c7f47
Branches
Tags
No related merge requests found
Showing
with 36 additions and 3942 deletions
...@@ -12,13 +12,13 @@ This properties must be configured to run the application ...@@ -12,13 +12,13 @@ This properties must be configured to run the application
| quarkus.oidc.auth-server-url | https://sso.dev.by.ozg-cloud.de/realms/sh-kiel-dev | none | yes | Url of the keycloak server with the realm | | quarkus.oidc.auth-server-url | https://sso.dev.by.ozg-cloud.de/realms/sh-kiel-dev | none | yes | Url of the keycloak server with the realm |
| quarkus.mongodb.connection-string | mongodb://ozg-mongodb:27017 | none | yes | The connection string for the mongo db database | | quarkus.mongodb.connection-string | mongodb://ozg-mongodb:27017 | none | yes | The connection string for the mongo db database |
| quarkus.mongodb.database | usermanager | usermanager | no | Name of the mongo db database | | quarkus.mongodb.database | usermanager | usermanager | no | Name of the mongo db database |
| kop.keycloak.sync.period | 5m | 6h | no | Period between synchronizations | | usermanager.keycloak.sync.period | 5m | 6h | no | Period between synchronizations |
| kop.keycloak.api.user | apiUser | none | yes | The name of the keycloak admin api user | | usermanager.keycloak.api.user | apiUser | none | yes | The name of the keycloak admin api user |
| kop.keycloak.api.password | **** | none | yes | The password of the keycloak admin api user | | usermanager.keycloak.api.password | **** | none | yes | The password of the keycloak admin api user |
| kop.keycloak.api.realm | realm-name | none | yes | The name of the realm | | usermanager.keycloak.api.realm | realm-name | none | yes | The name of the realm |
| kop.keycloak.api.organisations-einheit-id-key | organisationseinheitId | organisationseinheitId | no | The key where the organisationsEinheitId of the group is saved | | usermanager.keycloak.api.organisations-einheit-id-key | organisationseinheitId | organisationseinheitId | no | The key where the organisationsEinheitId of the group is saved |
| kop.keycloak.api.ldap-id-key | LDAP_ID | LDAP_ID | no | The key to get the keycloak user id from | | usermanager.keycloak.api.ldap-id-key | LDAP_ID | LDAP_ID | no | The key to get the keycloak user id from |
| kop.usermanager.url | http://localhost:8080 | none | yes | The external root url of the usermanager | | usermanager.usermanager.url | http://localhost:8080 | none | yes | The external root url of the usermanager |
| keycloak.url | https://sso.service | none | yes | The root url of the keycloak service | | keycloak.url | https://sso.service | none | yes | The root url of the keycloak service |
## Running the application in dev mode ## Running the application in dev mode
...@@ -47,7 +47,7 @@ use below configuration in your IDE or CLI. ...@@ -47,7 +47,7 @@ use below configuration in your IDE or CLI.
``` ```
-Dquarkus.profile=local,remotekc -Dquarkus.profile=local,remotekc
-Dquarkus.oidc.auth-server-url=https://sso.dev.by.ozg-cloud.de/realms/sebo-test -Dquarkus.oidc.auth-server-url=https://sso.dev.by.ozg-cloud.de/realms/sebo-test
-Dkop.keycloak.api.realm=sebo-test -Dusermanager.keycloak.api.realm=sebo-test
-Dozgcloud.usersync.period="5s" -Dozgcloud.usersync.period="5s"
``` ```
...@@ -123,7 +123,7 @@ Usermanager als über-jar erstellen und lokal starten: ...@@ -123,7 +123,7 @@ Usermanager als über-jar erstellen und lokal starten:
./mvnw clean package -Dquarkus.package.type=uber-jar ./mvnw clean package -Dquarkus.package.type=uber-jar
java -Dquarkus.oidc.auth-server-url=https://sso.dev.by.ozg-cloud.de/realms/by-kiel-dev \ java -Dquarkus.oidc.auth-server-url=https://sso.dev.by.ozg-cloud.de/realms/by-kiel-dev \
-Dkop.user-manager.url=http://localhost:8080 \ -Dusermanager.user-manager.url=http://localhost:8080 \
-Dkeycloak.url=https://sso.dev.by.ozg-cloud.de \ -Dkeycloak.url=https://sso.dev.by.ozg-cloud.de \
-jar ./target/user-manager-server-1.3.0-SNAPSHOT-runner.jar -jar ./target/user-manager-server-1.3.0-SNAPSHOT-runner.jar
``` ```
...@@ -136,12 +136,12 @@ Usermanager als native Anwendung erstellen und lokal starten: ...@@ -136,12 +136,12 @@ Usermanager als native Anwendung erstellen und lokal starten:
./target/user-manager-server-1.3.0-SNAPSHOT-runner \ ./target/user-manager-server-1.3.0-SNAPSHOT-runner \
-Dquarkus.oidc.auth-server-url=https://sso.dev.by.ozg-cloud.de/realms/by-kiel-dev \ -Dquarkus.oidc.auth-server-url=https://sso.dev.by.ozg-cloud.de/realms/by-kiel-dev \
-Dquarkus.mongodb.connection-string=mongodb://localhost:27018 \ -Dquarkus.mongodb.connection-string=mongodb://localhost:27018 \
-Dkop.user-manager.url=http://localhost:8080 \ -Dusermanager.user-manager.url=http://localhost:8080 \
-Dkeycloak.url=https://sso.dev.by.ozg-cloud.de \ -Dkeycloak.url=https://sso.dev.by.ozg-cloud.de \
-Dkop.keycloak.api.user=usermanagerapiuser \ -Dusermanager.keycloak.api.user=usermanagerapiuser \
-Dkop.keycloak.api.password=hlc_j1I1Ji0trC0 \ -Dusermanager.keycloak.api.password=hlc_j1I1Ji0trC0 \
-Dkop.keycloak.api.realm=by-kiel-dev \ -Dusermanager.keycloak.api.realm=by-kiel-dev \
-Dkop.keycloak.api.client=alfa \ -Dusermanager.keycloak.api.client=alfa \
-Dozgcloud.usersync.period="5m" \ -Dozgcloud.usersync.period="5m" \
-Xmx32m -Xmx32m
``` ```
......
...@@ -61,7 +61,7 @@ public class UserProfileResource { ...@@ -61,7 +61,7 @@ public class UserProfileResource {
// TODO parameter in den resourceAssembler verschieben // TODO parameter in den resourceAssembler verschieben
// TODO wozu ist der eigentlich gut? - bitte aus Request übernehmen // TODO wozu ist der eigentlich gut? - bitte aus Request übernehmen
@ConfigProperty(name = "kop.user-manager.url") @ConfigProperty(name = "usermanager.user-manager.url")
String userManagerUrl; String userManagerUrl;
@GET @GET
......
...@@ -27,7 +27,7 @@ import jakarta.validation.constraints.NotBlank; ...@@ -27,7 +27,7 @@ import jakarta.validation.constraints.NotBlank;
import io.smallrye.config.ConfigMapping; import io.smallrye.config.ConfigMapping;
@ConfigMapping(prefix = "kop.keycloak.api") @ConfigMapping(prefix = "usermanager.keycloak.api")
public interface KeycloakApiProperties { public interface KeycloakApiProperties {
@NotBlank @NotBlank
......
...@@ -63,7 +63,7 @@ public class UserSettingsResource { ...@@ -63,7 +63,7 @@ public class UserSettingsResource {
@Inject @Inject
UserSettingsResourceAssembler resourceAssembler; UserSettingsResourceAssembler resourceAssembler;
@ConfigProperty(name = "kop.user-manager.url") @ConfigProperty(name = "usermanager.user-manager.url")
String userManagerUrl; String userManagerUrl;
@GET @GET
......
...@@ -14,7 +14,7 @@ quarkus: ...@@ -14,7 +14,7 @@ quarkus:
level: TRACE level: TRACE
min-level: TRACE min-level: TRACE
kop: usermanager:
keycloak: keycloak:
api: api:
user: userManagerApiUser user: userManagerApiUser
......
...@@ -5,8 +5,10 @@ quarkus: ...@@ -5,8 +5,10 @@ quarkus:
log: log:
console: console:
json: false json: false
kop:
usermanager:
user-manager: user-manager:
url: http://localhost:9092 url: http://localhost:9092
keycloak: keycloak:
url: http://localhost:8088 url: http://localhost:8088
\ No newline at end of file
keycloak: keycloak:
url: https://sso.dev.by.ozg-cloud.de url: https://sso.dev.by.ozg-cloud.de
realm: by-kiel-dev realm: by-kiel-dev
quarkus: quarkus:
mongodb: mongodb:
database: usermanager database: usermanager
...@@ -11,7 +12,8 @@ quarkus: ...@@ -11,7 +12,8 @@ quarkus:
cors: cors:
~: true ~: true
origins: http://localhost:4300 origins: http://localhost:4300
kop:
usermanager:
user-manager: user-manager:
url: http://localhost:9092 url: http://localhost:9092
keycloak: keycloak:
......
...@@ -5,9 +5,10 @@ ...@@ -5,9 +5,10 @@
ssl: ssl:
certificate: /user-manager-tls-certificate/tls.crt certificate: /user-manager-tls-certificate/tls.crt
key: /user-manager-tls-certificate/tls.key key: /user-manager-tls-certificate/tls.key
quarkus: quarkus:
application: application:
name: kopusermanager name: ozgcloud_usermanager
http: http:
cors: cors:
~: true ~: true
...@@ -30,10 +31,12 @@ quarkus: ...@@ -30,10 +31,12 @@ quarkus:
level: INFO level: INFO
mongodb: mongodb:
database: usermanager database: usermanager
grpc: grpc:
server: server:
enable-reflection-service: true enable-reflection-service: true
kop:
usermanager:
keycloak: keycloak:
api: api:
ldap-id-key: LDAP_ID ldap-id-key: LDAP_ID
......
...@@ -10,7 +10,7 @@ import io.grpc.MethodDescriptor; ...@@ -10,7 +10,7 @@ import io.grpc.MethodDescriptor;
public class CallContextInterceptorTestFactory { public class CallContextInterceptorTestFactory {
private static final String CLIENT_NAME = "Client - Goofy"; private static final String CLIENT_NAME = "Client - Alfa";
private static final String ORGANISATIONS_EINHEIT_ID = "organisationsEinheitId"; private static final String ORGANISATIONS_EINHEIT_ID = "organisationsEinheitId";
private static final Boolean ORGANISATIONS_EINEHIT_ID_CHECK_NECESSARY = Boolean.TRUE; private static final Boolean ORGANISATIONS_EINEHIT_ID_CHECK_NECESSARY = Boolean.TRUE;
......
...@@ -29,13 +29,13 @@ import io.quarkus.test.junit.QuarkusTestProfile; ...@@ -29,13 +29,13 @@ import io.quarkus.test.junit.QuarkusTestProfile;
public class KeycloakTestProfile implements QuarkusTestProfile { public class KeycloakTestProfile implements QuarkusTestProfile {
private final String userKey = "kop.keycloak.api.user"; private final String userKey = "usermanager.keycloak.api.user";
private final String userValue = "userManagerApiUser"; private final String userValue = "userManagerApiUser";
private final String passwordKey = "kop.keycloak.api.password"; private final String passwordKey = "usermanager.keycloak.api.password";
private final String passwordValue = "hlc_j1I1Ji0trC0"; private final String passwordValue = "hlc_j1I1Ji0trC0";
private final String realmKey = "kop.keycloak.api.realm"; private final String realmKey = "usermanager.keycloak.api.realm";
private final String realmValue = "by-kiel-dev"; private final String realmValue = "by-kiel-dev";
private final String urlKey = "keycloak.url"; private final String urlKey = "keycloak.url";
......
...@@ -3,7 +3,7 @@ quarkus: ...@@ -3,7 +3,7 @@ quarkus:
devservices: devservices:
enabled: false enabled: false
application: application:
name: kopusermanager name: ozgcloud_usermanager
mongodb: mongodb:
devservices: devservices:
enabled: false enabled: false
...@@ -16,7 +16,7 @@ quarkus: ...@@ -16,7 +16,7 @@ quarkus:
oidc: oidc:
auth-server-url: https://sso.dev.by.ozg-cloud.de/realms/by-kiel-dev auth-server-url: https://sso.dev.by.ozg-cloud.de/realms/by-kiel-dev
kop: usermanager:
keycloak: keycloak:
api: api:
user: "-" user: "-"
...@@ -24,7 +24,7 @@ kop: ...@@ -24,7 +24,7 @@ kop:
realm: by-kiel-dev realm: by-kiel-dev
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: alfa
user-manager: user-manager:
url: http://localhost:9092 url: http://localhost:9092
keycloak: keycloak:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment