Skip to content

Commit

Permalink
Merge pull request quarkusio#7946 from stuartwdouglas/3227
Browse files Browse the repository at this point in the history
Remove usage of deprecated WildFlyElytronProvide
  • Loading branch information
gastaldi authored Mar 19, 2020
2 parents 85e2ff7 + f07f763 commit 895da87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

import javax.sql.DataSource;

import org.wildfly.security.WildFlyElytronProvider;
import org.wildfly.security.auth.realm.jdbc.JdbcSecurityRealm;
import org.wildfly.security.auth.realm.jdbc.JdbcSecurityRealmBuilder;
import org.wildfly.security.auth.realm.jdbc.QueryBuilder;
import org.wildfly.security.auth.realm.jdbc.mapper.AttributeMapper;
import org.wildfly.security.auth.server.SecurityRealm;
import org.wildfly.security.password.WildFlyElytronPasswordProvider;

import io.quarkus.arc.Arc;
import io.quarkus.runtime.RuntimeValue;
Expand All @@ -19,7 +19,7 @@
@Recorder
public class JdbcRecorder {

private static final Provider[] PROVIDERS = new Provider[] { new WildFlyElytronProvider() };
private static final Provider[] PROVIDERS = new Provider[] { new WildFlyElytronPasswordProvider() };

/**
* Create a runtime value for a {@linkplain JdbcSecurityRealm}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.wildfly.security.WildFlyElytronProvider;
import org.wildfly.security.auth.principal.NamePrincipal;
import org.wildfly.security.auth.realm.LegacyPropertiesSecurityRealm;
import org.wildfly.security.auth.realm.SimpleMapBackedSecurityRealm;
Expand All @@ -23,6 +22,7 @@
import org.wildfly.security.authz.MapAttributes;
import org.wildfly.security.credential.Credential;
import org.wildfly.security.credential.PasswordCredential;
import org.wildfly.security.password.WildFlyElytronPasswordProvider;
import org.wildfly.security.password.interfaces.ClearPassword;

/**
Expand All @@ -41,7 +41,7 @@ public void testLegacyPropertiesSecurityRealm() throws IOException {
.setProviders(new Supplier<Provider[]>() {
@Override
public Provider[] get() {
return new Provider[] { new WildFlyElytronProvider() };
return new Provider[] { new WildFlyElytronPasswordProvider() };
}
})
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import org.jboss.logging.Logger;
import org.wildfly.common.iteration.ByteIterator;
import org.wildfly.security.WildFlyElytronProvider;
import org.wildfly.security.auth.realm.LegacyPropertiesSecurityRealm;
import org.wildfly.security.auth.realm.SimpleMapBackedSecurityRealm;
import org.wildfly.security.auth.realm.SimpleRealmEntry;
Expand All @@ -44,7 +43,7 @@
public class ElytronPropertiesFileRecorder {
static final Logger log = Logger.getLogger(ElytronPropertiesFileRecorder.class);

private static final Provider[] PROVIDERS = new Provider[] { new WildFlyElytronProvider() };
private static final Provider[] PROVIDERS = new Provider[] { new WildFlyElytronPasswordProvider() };

/**
* Load the user.properties and roles.properties files into the {@linkplain SecurityRealm}
Expand Down

0 comments on commit 895da87

Please sign in to comment.