Hi,
our application currently uses the customized security domain for reading the database credentials store. Now, i want to migrate that customized security domain to elytron security.
I know we can use the credentials store for storing the password and reference it in datasource security. But, this allows the username to be plain text which is not allowed as per our security policy.
So, is there any way we can write the custom code which can be referenced for datasource authentication.
my datasource configuration
<datasource enabled="true" jndi-name="java:/poolname" jta="false" pool-name="test" statistics-enabled="true" use-java-context="false">
<connection-url>jdbc:postgresql://localhost:5432/test</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<driver>Postgres</driver>
<pool>
<min-pool-size>0</min-pool-size>
<initial-pool-size>0</initial-pool-size>
<max-pool-size>50</max-pool-size>
<flush-strategy>InvalidIdleConnections</flush-strategy>
</pool>
<security>
<security-domain>testdbcredentials</security-domain>
</security>
.............................
</datasource>
<subsystem xmlns="urn:jboss:domain:security:2.0">
<security-domains>
<security-domain cache-type="default" name="testdbcredentials">
<authentication>
<login-module code="com.abcd.security.DatabaseCredentialModule" flag="required" module="com.abcd.security.auth"/>
</authentication>
</security-domain>
..............................
any reference/guide would be great helpful.