Never mind that. I worked out how to provide another implementation :) Now I've got to provider a contribution to the hivemind.acegi.AccessDecisionVoters contribution point. Looking at the Acegi doc it looks like I need a BasicAclEntryVoter, but I'd have thought this is the area that TA would implement as my pages or listener methods are secured by the @Secured annotation.
So, what am I missing here?
Rob Cole
CSA Web
+44 (0)20 754 51117
Robert Cole <[EMAIL PROTECTED]>
01/09/2006 17:16
To
"Tapestry users" <[email protected]>
cc
Please respond to
"'Tapestry users'" <[email protected]>
"Tapestry users" <[email protected]>
Subject
RE: Tapestry Acegi
Hi James. Thanks for taking the time to help me with this. I think my problem
was caused by not having the hivemind-acegi module. I've now got that plus the
hivemind-acegi-dao, as I want to use a simple InMemoryDaoImpl.
I think I'm now back into Hivemind related issues, as this is where my Hivemind
knowledge breaks down. I can see in the hivemodule you've got this:
<service-point id="UserDetailsService"
interface="org.acegisecurity.userdetails.UserDetailsService"/>
I need to provide my own implementation, something like this, though I'm not
quite sure how to specify the userMap. Fun with that later I suspect.
<service-point id="userDetailsService"
interface="org.acegisecurity.userdetails.UserDetailsService">
<invoke-factory>
<construct class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
<set-object property="userMap">
<value>
[EMAIL PROTECTED],ROLE_SUPERUSER
[EMAIL PROTECTED],ROLE_DATA_ADMINISTRATOR
fred,ROLE_SUPPORT
</value>
</set-object>
</construct>
</invoke-factory>
</service-point>
I've tried using a <contribution> :
<!-- Acegi DAO seurity requirement -->
<contribution configuration-id="hivemind.acegi.dao.UserDetailsService">
<service name="UserDetailsService" object="service:userDetailsService"/>
</contribution>
But since I'm not contributing to a named service I get an error. Hopefully I
just need to sort out these last two things and I'm up and running.
If you like once I get there I could write a how-to for you to use on the
tapestry-acegi site detailing what I did along with some concrete examples?
Rob Cole
CSA Web
+44 (0)20 754 51117
"James Carman" <[EMAIL PROTECTED]>
01/09/2006 14:58
To
"'Tapestry users'" <[email protected]>
cc
Please respond to
"Tapestry users" <[email protected]>
Subject
RE: Tapestry Acegi
Tapestry-Acegi doesn't use Spring at all. Can you send me the error
messages? You need hivemind-acegi.jar in your classpath.
-----Original Message-----
From: Robert Cole [mailto:[EMAIL PROTECTED]
Sent: Friday, September 01, 2006 9:53 AM
To: Tapestry users
Cc: 'Tapestry users'
Subject: RE: Tapestry Acegi
Hi James,
I've managed to get Acegi up and running with our own custom filter but when
I put the Tapestry Acegi jar into my build I get errors about various beans
not being present. Is there any documentation on what Spring beans TA
depends on?
Also, looking at the hivemodule, most of the configuration is in Hivemind
with some dependencies on other Acegi objects being created somewhere else,
i.e. in Spring. While we make extensive use of both, we have Hivemind
sitting on top of Spring. In otherwords, while Hivemind can retrieve Spring
beans, Spring cannot gain access to Hivemind services. This is to stop any
circular depencecies being created. Could this cause a problem for TA?
I guess I'm kind of working in the cark at the moment, but the concept of TA
looks very, very promising!
Rob Cole
"James Carman" <[EMAIL PROTECTED]>
31/08/2006 18:11
To
"'Tapestry users'" <[email protected]>
cc
Please respond to
"Tapestry users" <[email protected]>
Subject
RE: Tapestry Acegi
Oh, as for the @Secured annotation not being present, you have to add the
acegi-security-tiger.jar file (tiger = JDK5) to your classpath.
Tapestry-Acegi uses the built-in @Secured annotation available from Acegi to
secure page classes and listener methods.
For the build to work, you will have to install some of the "sun jars" (it's
a pain in the rear, I know) and you can refer to the maven documentation
here:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
There is a bit (a very bit, sorry :-) of documentation available at:
http://www.carmanconsulting.com/tapestry-acegi
Again, I am going to have some time off next week and the next and I plan on
updating all of this stuff.
-----Original Message-----
From: Robert Cole [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 12:53 PM
To: [email protected]
Subject: Tapestry Acegi
Has anyone used the Tapestry-Acegi project? I'm about to implement some role
based security on our project and we're looking at this as its linked on the
Tapestry home page. Unfortunately there's no doc and the builds don't appear
to work as when I tried one (the latest one from June some time) it looks
like there's some hivemind configuration missing. Plus the annotation file
that's supposed to do all of the work for me is missing from the build!
Its not going to be that hard to implement our own Acegi based security but
it would be nice if the Tapestry one could do 90% of the work for us.
Thanks,
Rob Cole
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
