Skip to content

Commit

Permalink
Merge pull request #527 from it-at-m/authservice-change-settings-prefix
Browse files Browse the repository at this point in the history
refactor properties im AuthService serviceauth -> service.config
  • Loading branch information
MrSebastian authored Nov 11, 2024
2 parents 3dbab83 + 2c5e8af commit c681865
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/src/services/auth-service/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ sequenceDiagram

## Konfigrationsparameter

Alle Konfigurationsparameter beginnen mit dem Prefix `serviceauth`
Alle Konfigurationsparameter beginnen mit dem Prefix `service.config`

| Name | Beschreibung | Default |
|-------------------------|----------------------------------------------------------------------------------------| ------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public class InfomanagementServiceClient implements WelcomeClient {

private final KonfigurationControllerApi konfigurationControllerApi;

@Value("${serviceauth.clients.infomanagement.configkey.welcomeMessage}")
@Value("${service.config.clients.infomanagement.configkey.welcomeMessage}")
String konfigKeyWelcomeMessage;

@Value("${serviceauth.welcomemessage.default}")
@Value("${service.config.welcomemessage.default}")
String defaultWelcomeMessage;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@RequiredArgsConstructor
public class BasePathConfiguration {

@Value("${serviceauth.clients.infomanagement.basepath}")
@Value("${service.config.clients.infomanagement.basepath}")
String eaiBasePath;

private final ApiClient eaiApiClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class CryptoService {

private final EncryptionBuilder encryptionBuilder;

@Value("${serviceauth.crypto.encryptionPrefix}")
@Value("${service.config.crypto.encryptionPrefix}")
private String encryptedPrefix = "";

public boolean isEncrypted(final String value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class UserService {

private final LoginAttemptModelMapper loginAttemptModelMapper;

@Value("${serviceauth.maxLoginAttempts}")
@Value("${service.config.maxLoginAttempts}")
@Getter
@Setter
private int maxLoginAttempts;
Expand Down
25 changes: 12 additions & 13 deletions wls-auth-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,16 @@ info.application.name: @project.artifactId@
info.application.version: @project.version@

service:
config:
crypto:
encryptionPrefix: "ENCRYPTED:"
maxLoginAttempts: 5
clients:
infomanagement:
basepath: http://localhost:39146
configkey:
welcomeMessage: WILLKOMMENSTEXT
welcomemessage:
default: "Willkommen zur Wahl!"
info:
oid: AUTH-SERVICE

serviceauth:
crypto:
encryptionPrefix: "ENCRYPTED:"
maxLoginAttempts: 5
clients:
infomanagement:
basepath: http://localhost:39146
configkey:
welcomeMessage: WILLKOMMENSTEXT
welcomemessage:
default: "Willkommen zur Wahl!"
oid: AUTH-SERVICE

0 comments on commit c681865

Please sign in to comment.