Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix elytron properties help #4818

Merged
merged 2 commits into from
Oct 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ void configureFileRealmAuthConfig(ElytronPropertiesFileRecorder recorder,
BuildProducer<SecurityRealmBuildItem> securityRealm) throws Exception {
if (propertiesConfig.file.enabled) {
PropertiesRealmConfig realmConfig = propertiesConfig.file;
log.debugf("Configuring from PropertiesRealmConfig, users=%s, roles=%s", realmConfig.getUsers(),
realmConfig.getRoles());
log.debugf("Configuring from PropertiesRealmConfig, users=%s, roles=%s", realmConfig.users,
realmConfig.roles);
// Add the users/roles properties files resource names to build artifact
resources.produce(new SubstrateResourceBuildItem(realmConfig.users, realmConfig.roles));
// Have the runtime recorder create the LegacyPropertiesSecurityRealm and create the build item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,39 +49,7 @@ public class PropertiesRealmConfig {
public String roles;

public String help() {
return "{enabled,users,roles,authMechanism,realmName}";
}

public boolean isEnabled() {
return enabled;
}

public void setEnabled(boolean enabled) {
this.enabled = enabled;
}

public String getUsers() {
return users;
}

public void setUsers(String users) {
this.users = users;
}

public String getRoles() {
return roles;
}

public void setRoles(String roles) {
this.roles = roles;
}

public String getRealmName() {
return realmName;
}

public void setRealmName(String realmName) {
this.realmName = realmName;
return "{enabled,users,roles,realm-name,plain-text}";
}

@Override
Expand All @@ -91,6 +59,7 @@ public String toString() {
", enabled=" + enabled +
", users='" + users + '\'' +
", roles='" + roles + '\'' +
", plainText=" + plainText +
'}';
}
}