Skip to content

Commit

Permalink
Merge pull request #10950 from stuartwdouglas/runtime-users-config
Browse files Browse the repository at this point in the history
Make the runtime config class actually runtime config
  • Loading branch information
gsmet authored Jul 28, 2020
2 parents c60b999 + 5d255db commit 2768f20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class ElytronPropertiesProcessor {
private static final String ROLES_PREFIX = "quarkus.security.embedded.roles";

SecurityUsersConfig propertiesConfig;
MPRealmRuntimeConfig runtimeConfig;

@BuildStep
FeatureBuildItem feature() {
Expand Down Expand Up @@ -102,7 +101,8 @@ ElytronPasswordMarkerBuildItem marker() {
@BuildStep
@Record(ExecutionTime.RUNTIME_INIT)
void configureMPRealmConfig(ElytronPropertiesFileRecorder recorder,
BuildProducer<SecurityRealmBuildItem> securityRealm) throws Exception {
BuildProducer<SecurityRealmBuildItem> securityRealm,
MPRealmRuntimeConfig runtimeConfig) throws Exception {
if (propertiesConfig.embedded.enabled) {
MPRealmConfig realmConfig = propertiesConfig.embedded;
log.info("Configuring from MPRealmConfig");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import java.util.Map;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

/**
* Configuration information used to populate a {@linkplain org.wildfly.security.auth.realm.SimpleMapBackedSecurityRealm}
* }
*/
@ConfigRoot(name = "security.users.embedded")
@ConfigRoot(name = "security.users.embedded", phase = ConfigPhase.RUN_TIME)
public class MPRealmRuntimeConfig {

/**
Expand Down

0 comments on commit 2768f20

Please sign in to comment.