Hello,
I'd like to be able to use isInRole("Role1"), isInRole("Role2"), etc ...
As I'm using v3.3.2 for WS6 reasons, the doc on the site does not match.
For example, the constructor of MultiRowJdbcPersonAttributeDao takes 3
parameters and not 2 as now.
I'm using the attributes approach but wouldn't mind if someone helpful
could point me to a hook where I could populate the principal myself.
Here is my configuration. It ends with a NPE that does not appear in the WS
logs, only on screen
Error 500: Request processing failed; nested exception is
org.springframework.webflow.engine.ActionExecutionException: Exception
thrown executing [AnnotatedAction@7e267e26 targetAction =
org.jasig.cas.web.flow.AuthenticationViaFormAction@48d648d6, attributes =
map['method' -> 'submit']] in state 'submit' of flow 'login-webflow' --
action execution attributes were 'map['method' -> 'submit']'; nested
exception is java.lang.NullPointerException
And of course, I don't know spring webflow at all.
Here is a part of my xml configuration
<bean id="multiRowJdbcPersonAttributeDao"
class="org.jasig.services.persondir.support.jdbc.MultiRowJdbcPersonAttributeDao">
<constructor-arg index="0" ref="dataSource" />
<constructor-arg index="1" >
<list>
<value>username</value>
<value>LOGINNAME</value>
</list>
</constructor-arg>
<constructor-arg index="2" value="select distinct MYLOGIN AS LOGINNAME,
APPCODE AS ROLENAME from TABLE_GROUPS where {0}" type="java.lang.String"/>
<property name="nameValueColumnMappings" >
<map>
<entry key="LOGINNAME" value="ROLENAME" />
</map>
</property>
<!-- copied from the corresponding javadoc
setNameValueColumnMappings(Map<String,? extends Object>
nameValueColumnMap)
The Map of columns from a name column to value columns.
setAttributeNameMappings(Map<String,Object> attributeNameMap)
The passed Map must have keys of type String and values of type
String or a Set of String.
-->
<property name="attributeNameMappings">
<map>
<entry key="username" value="LOGINNAME" />
</map>
</property>
</bean>
Thanks for your time
Jerome B.
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user