Authorization Failure when testing Services Management
qingfeng zhang
qingfeng.zhang at gmail.com
Wed Dec 3 23:06:09 EST 2008
Where CAS store user/role information? Can I just use the
InMemoryServiceRegistryDaoImpl
to test it or I must config a DB for storing *authorization *related data.
Thanks,
Qingfeng
*
*2008/12/4 qingfeng zhang <qingfeng.zhang at gmail.com>
> Hi,
>
> I'm using the default configuration to test the Services Management
> function.
>
> The configurations are as follows:
> 1. 'serviceRegistryDao' in deployerConfigContext.xml , keep it as default.
>
> <bean
> id="serviceRegistryDao"
> class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl" />
>
> 2. 'userDetailsService' in deployerConfigContext.xml, changed to:
>
> <bean id="userDetailsService" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
>
> <property name="userMap">
> <value>
> username=admin,ROLE_ADMIN
> </value>
>
> </property>
> </bean>
>
>
> When I access the https://localhost:8443/cas/services/ and login use
> 'admin', I got the following error:
> '*You are not authorized to use this application for the following reason:
> Could not find user: admin. * '
>
>
> Thanks,
> Qingfeng
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20081204/830f9ddf/attachment.html
More information about the cas
mailing list