@Secured({"ROLE1","ROLE2","ROLE3"})

> -----Original Message-----
> From: Mahen Perera [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 29, 2008 9:29 PM
> To: Tapestry users
> Subject: RE: T5: Problem with login form with Acegi
> 
> Thanks Guys, this thread benefitted me as well :)
> 
> One more Q:
> How can I give multiple roles access to a page
> 
> @Secured("RLE-DEFAULT-ROLE <here can I specifiy roles separating them
> using commas,, or else, how can I do it?>")
> Public class Blah{
> 
> Thanks
> 
> 
> -----Original Message-----
> From: Jacob Bergoo [mailto:[EMAIL PROTECTED]
> Sent: 29 March 2008 16:32
> To: [email protected]
> Subject: RE: T5: Problem with login form with Acegi
> 
> 
> Thanks Jonathan, that did the trick!
> Cheers,
> Jacob
> 
> 
> Jonathan Barker wrote:
> >
> >
> > I should have pasted a little more code before.  You need the
> following
> > line
> > in your onSuccess method:
> >
> >
> > SecurityContextHolder.getContext().setAuthentication(authResult);
> >
> >
> > Acegi expects to do everything through the SecurityContext.
> >
> >
> >
> >
> >> -----Original Message-----
> >> From: Jacob Bergoo [mailto:[EMAIL PROTECTED]
> >> Sent: Friday, March 28, 2008 9:57 PM
> >> To: [email protected]
> >> Subject: Re: T5: Problem with login form with Acegi
> >>
> >>
> >> Hi again,
> >> I had an error in my code when I compared the Set<GrantedAuthority>
> with
> >> a
> >> String value... I changed that so the Set takes a String as input
> >> instead.
> >> Now it goes into the first if statement and try to call page Secure
> and I
> >> get the same error as I posted in my previous posting...
> >>
> >> in the end the error states:
> >> Caused by: org.acegisecurity.AccessDeniedException: Access is denied
> >>         at
> >>
> org.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:68)
> >>         at
> >>
> $AccessDecisionManager_118f7af2115.decide($AccessDecisionManager_118f7af
> 21
> >> 15.java)
> >>         at
> >>
> org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation
> (A
> >> bstractSecurityInterceptor.java:323)
> >>         at
> >>
> nu.localhost.tapestry.acegi.services.internal.StaticSecurityChecker.chec
> kB
> >> efore(StaticSecurityChecker.java:43)
> >>         at
> >>
> $SecurityChecker_118f7af20ce.checkBefore($SecurityChecker_118f7af20ce.ja
> va
> >> )
> >>         at com.bergoo.webshop.pages.Secure.beginRender(Secure.java)
> >>         at
> >>
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$11$1.run
> (C
> >> omponentPageElementImpl.java:338)
> >>         at
> >>
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(C
> om
> >> ponentPageElementImpl.java:874)
> >>         ... 98 more
> >>
> >> I don't see the reason why I get the Access denied.
> >> Thanks for any help...
> >> Jacob
> >> --
> >> View this message in context:
> http://www.nabble.com/T5%3A-Problem-with-
> >> login-form-with-Acegi-tp16364295p16365723.html
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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]
> >
> >
> >
> 
> --
> View this message in context:
> http://www.nabble.com/T5%3A-Problem-with-login-form-with-Acegi-tp1636429
> 5p16371816.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> The information contained in this email is strictly confidential and for
> the use of the addressee only, unless otherwise indicated. If you are not
> the intended recipient, please do not read, copy, use or disclose to
> others this message or any attachment. Please also notify the sender by
> replying to this email or by telephone (+44 (0)20 7896 0011) and then
> delete the email and any copies of it. Opinions, conclusions (etc.) that
> do not relate to the official business of this company shall be understood
> as neither given nor endorsed by it. IG Index plc is a company registered
> in England and Wales under number 01190902. VAT registration number 761
> 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London
> SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA
> Register number 114059.
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to