As follow up, I'm finding that the file containing the JSON attributes
seems to be being ignored. Syntax errors aren't being noticed and I'm not
seeing the log message that the code contains:
Un-marshaling person attributes from the config file
Is something else required for the repository to be initialized which
triggers the file to be loaded?
init()
On Thursday, January 21, 2016 at 12:18:29 PM UTC-5, Jonathan Labin wrote:
>
> seeing in the log file
>
> 2016-01-21T17:13:42.241+0000|Info: 2016-01-21 17:13:42,241 DEBUG
> [org.jasig.services.persondir.support.JsonBackedComplexStubPersonAttributeDao]
>
> - <Created seed map='{username=[test]}' for uid='test'>
> 2016-01-21T17:13:42.241+0000|Info: 2016-01-21 17:13:42,241 DEBUG
> [org.jasig.services.persondir.support.JsonBackedComplexStubPersonAttributeDao]
>
> - <Adding attribute 'loginName' with value '[test]' to query builder 'null'>
> 2016-01-21T17:13:42.241+0000|Info: 2016-01-21 17:13:42,241 DEBUG
> [org.jasig.services.persondir.support.JsonBackedComplexStubPersonAttributeDao]
>
> - <Generated query builder 'null' from query Map {username=[test]}.>
> 2016-01-21T17:13:42.241+0000|Info: 2016-01-21 17:13:42,241 DEBUG
> [org.jasig.services.persondir.support.JsonBackedComplexStubPersonAttributeDao]
>
> - <No queryBuilder was generated for query {username=[test]}, null will be
> returned>
>
> 2016-01-21T17:13:42.241+0000|Info: 2016-01-21 17:13:42,241 DEBUG
> [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] -
> <org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolver@3d7b7595
>
> resolved test from test+password>
> 2016-01-21T17:13:42.241+0000|Info: 2016-01-21 17:13:42,241 INFO
> [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] -
> <Authenticated test with credentials [test+password].>
> 2016-01-21T17:13:42.241+0000|Info: 2016-01-21 17:13:42,241 DEBUG
> [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] -
> <Attribute map for test: {}>
>
>
> deployerConfigContext.xml:
>
> <bean id="filePrincipalResolver"
>
> class="org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolver"
> p:principalFactory-ref="principalFactory"
> p:attributeRepository-ref="jsonAttributeRepository" />
>
> <!-- and attributes defined in a JSON file -->
> <bean id="jsonAttributeRepository"
>
> class="org.jasig.services.persondir.support.JsonBackedComplexStubPersonAttributeDao"
>
> p:queryAttributeMapping-ref="queryAttributeMap"
> p:resultAttributeMapping-ref="resultAttributeMap">
> <constructor-arg index="0" value="${fixed.attributes.file}" />
> </property>
> </bean>
>
> <util:map id="queryAttributeMap">
> <entry key="username" value="username" />
> </util:map>
>
> <util:map id="resultAttributeMap">
> <entry key="name" value="name" />
> <entry key="displayName" value="displayName" />
> <entry key="memberOf" value="memberOf" />
> </util:map>
>
> Is there something different i should place in the queryAttributeMap ?
>
--
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.