Continuation of my earlier question. I'm working on CAS 5 to modify according to my needs. With help of CAS tutorial now I've done customized authentication. Now I've added below dependency to pom.xml
to connect to database by following link.
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-jdbc</artifactId>
<version>${cas.version}</version>
</dependency>
And added database authentication properties in application.properties
cas.authn.jdbc.query[0].sql=some query
cas.authn.jdbc.query[0].url=jdbc:postgresql://127.0.0.1/dbcas
cas.authn.jdbc.query[0].dialect=org.hibernate.dialect.PostgreSQLDialect
cas.authn.jdbc.query[0].user=readonly
cas.authn.jdbc.query[0].password=readonly
cas.authn.jdbc.query[0].ddlAuto=none
cas.authn.jdbc.query[0].driverClass=org.postgresql.Driver
But it's not working means getting
Type 'org.apereo.cas.configuration.model.support.jdbc.QueryJdbcAuthenticationProperties' has no property 'url'
Am I missing anything here. Any one please help me in this.
Update:
I've checked the source of QueryJdbcAuthenticationProperties
@RequiredProperty
private String sql;
And AbstractJpaProperties
private String dialect;
private String ddlAuto;
@RequiredProperty
private String driverClass;
@RequiredProperty
private String url;
@RequiredProperty
private String user;
@RequiredProperty
private String password;
I found same two classes in cas-server-core-api-configuration-model-5.3.2.jar
file and these two are not found in any other package and jar file.
What's the issue here. I'm unable to identified it.
How to know where these properties (
cas.authn.jdbc.query
) has been defined?
I thought that object has been created w.r.t child class QueryJdbcAuthenticationProperties
while defining these database properties.