Re: [Acegisecurity-developer] A valid SecureContext was not provided in the RequestContext

2004-07-23 Thread Daniel Washusen
Yeah, after stuffing around a little more I realised it's something to do with the authentication call I'm making. I get the error in my JUnit test but not when I deploy the app. I'm trying to authenticate using: ProviderManager providerManager = (ProviderManager) applicationContext.getBean("auth

RE: [Acegisecurity-developer] A valid SecureContext was not provided in the RequestContext

2004-07-23 Thread March, Andres
Could you be more specific about how you are authenticating the Subject? Which provider are you using? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Daniel Washusen > Sent: Friday, July 23, 2004 9:00 PM > To: [EMAIL PROTECTED] > Subject: [Acegise

[Acegisecurity-developer] A valid SecureContext was not provided in the RequestContext

2004-07-23 Thread Daniel Washusen
Hi All, I'm attempting to use the MethodSecurityInterceptor to pretect method calls on a specific class. When I try and invoke my method a AuthenticationCredentialsNotFoundException exception is thrown with a message of "A valid SecureContext was not provided in the RequestContext". I've taken a

Re: [Acegisecurity-developer] authz tag in Sitemesh Decorator

2004-07-23 Thread Chris Custine
OK guys, it was the filter ordering. Can't believe I missed that. Thanks for answering stupid questions!! Chris Ben Alex wrote: François Beausoleil wrote: Do you have some code you could show us ? I don't even know what sitemesh is... I could take a look, and see if there's anything I could

RE: [Acegisecurity-developer] Suggestions for changes to AbstractProcessingFilter

2004-07-23 Thread Wesley Hall
Hi Ben, > Hi Wesley > > If you'd like to submit patches which take advantage of the enhanced > AuthenticationException.getAuthentication() method, I'd be pleased to > apply them to CVS. > > Best regards > Ben OK, I started an attempt at adding the setting of the Authentication object right down a

Re: [Acegisecurity-developer] Correct understanding

2004-07-23 Thread Ben Alex
[EMAIL PROTECTED] wrote: I have a couple of fundamental questions. 1. it looks like the Adapter for the specific container e.g. net.sf.acegisecurity.adapters.catalina.CatalinaAcegiUserRealm will use whatever provider is setup in Acegi. And the main purpose of this is: that applications can con

Re: [Acegisecurity-developer] authz tag in Sitemesh Decorator

2004-07-23 Thread Ben Alex
François Beausoleil wrote: Do you have some code you could show us ? I don't even know what sitemesh is... I could take a look, and see if there's anything I could do ? Hi Francois I used Sitemesh with Acegi Security successfully, so I'm not sure they'd be a ContextHolder-level issue. As the

[Acegisecurity-developer] Correct understanding

2004-07-23 Thread brian . bonner
I have a couple of fundamental questions. 1. it looks like the Adapter for the specific container e.g. net.sf.acegisecurity.adapters.catalina.CatalinaAcegiUserRealm will use whatever provider is setup in Acegi. And the main purpose of this is: that applications can continue to leverage the au

Re: [Acegisecurity-developer] authz tag in Sitemesh Decorator

2004-07-23 Thread François Beausoleil
Hello Chris, Chris Custine wrote: It looks to me like the authz tag does not work properly inside a Sitemesh decorator, but works correctly if used inside an actual decorated jsp. I suspect that there are some problems with the ContextHolder ThreadLocal instance and the Sitemesh decorator not

[Acegisecurity-developer] EL support in authz taglib

2004-07-23 Thread François Beausoleil
Hello everyone, Scott, I'm so sorry. I never even saw your contrib. Ben saw it, though, and brought it to my attention. Anyway, the authz taglib now supports EL expressions in ifAnyGranted, ifAllGranted and ifNotGranted. This means you can use something like this: ROLE_SUPERVISOR, R