[Acegisecurity-developer] Maven Build in CVS

2004-06-08 Thread Ben Alex
Thanks to Carlos Sanchez for providing an initial Maven build file. I've just checked it into CVS along with some required changes to library names. Would others running from CVS please check if this works. As previously stated, I haven't used Maven before. It seems to build the main JAR correctly

[Acegisecurity-developer] HttpServletRequest getters

2004-06-08 Thread Ben Alex
Hi everyone The Acegi Security System for Spring (http://acegisecurity.sourceforge.net) uses HttpServletRequest getters in a filter. I do all the development of the project using Jetty, but we've had a report of problems with WebSphere 5.1.1. I'm writing to the Jetty list in the hope of gaining so

RE: [Acegisecurity-developer] Websphere 5.1 and HttpSession security

2004-06-08 Thread Mark St Godard
Hi Ben, Rebuilt Acegi with logging and here are the results as follows: [6/8/04 15:38:24:192 CDT] 7e8cf570 DEBUG     O REQ url: http://localhost:9080/Permit/j_acegi_security_check [6/8/04 15:38:24:198 CDT] 7e8cf570 DEBUG     O REQ servlet path: / [6/8/04 15:38:24:198 CDT] 7e8cf570 DEBUG     O RE

Re: [Acegisecurity-developer] why auth user is required before access decision voters are called in HTTP request security?

2004-06-08 Thread Karel Miarka
Ben, Thanks for your advice. I have successfuly protected all my Tapestry pages except Login page using the channel security using just one prefix for Tapestry servlet (/app) and avoiding the need to protect the secured pages by PageValidateListener. It seems to be a good option for Tapestry users

Re: [Acegisecurity-developer] DaoAuthenticationProvider doesn't work with passwordEncoder in 0.51

2004-06-08 Thread Karel Miarka
Yes, that's it! I have patched the acegi-security.jar in my Tomcat/shared/lib, but didn't realized there is an old version in Tomcat/webapps/contacts/WEB-INF/lib . Thanks for your help. I'll sleep better tonight ;-) Karel - Original Message - From: "Ben Alex" <[EMAIL PROTECTED]> To: <[EMA

RE: [Acegisecurity-developer] DaoAuthenticationProvider doesn't work with passwordEncoder in 0.51

2004-06-08 Thread Ben Alex
> Thanks for the fast fix! > Hmmm, I'm a bit disappointed, because I wanted to propose you > the same fix. > I have made it, rebuilded my acegi-security.jar, placed it > into container, tried to run it and it doesn't help :(( I'm > still a Java rookie. :-/ > > (just a note to our GUI thread: my

Re: [Acegisecurity-developer] DaoAuthenticationProvider doesn't work with passwordEncoder in 0.51

2004-06-08 Thread Karel Miarka
Ben, Thanks for the fast fix! Hmmm, I'm a bit disappointed, because I wanted to propose you the same fix. I have made it, rebuilded my acegi-security.jar, placed it into container, tried to run it and it doesn't help :(( I'm still a Java rookie. :-/ (just a note to our GUI thread: my GUI is Tapes

RE: [Acegisecurity-developer] DaoAuthenticationProvider doesn't work with passwordEncoder in 0.51

2004-06-08 Thread Ben Alex
> try this: In your Contacts example application I have done > those changes in > applicationContext.xml: > > 1) changed the password of marrisa to be MD5 encrypted > 2) added passwordEncoder bean > 3) used this passwordEncoder in daoAuthenticationProvider Hi Karel Yes, indeed it is a bug in 0

RE: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-08 Thread Ben Alex
> > > Thank you very much for the explanation. Just another > > > possible solution occurred to me: > > > > > > 1) to define "ask" functions like this in secured beans: > > > > > > public boolean canModify(MyBean obj) { > > > return true; > > > } > > > public boolen canInsert() { > > > return

Re: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-08 Thread Patrick Vanhuyse
Ben, Could you provide some code samples ? - Original Message - From: "Ben Alex" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 08, 2004 2:16 PM Subject: RE: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not? > > > Thank you very much fo

RE: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-08 Thread Ben Alex
> Thank you very much for the explanation. Just another > possible solution occurred to me: > > 1) to define "ask" functions like this in secured beans: > > public boolean canModify(MyBean obj) { > return true; > } > public boolen canInsert() { > return true; > } > > 2) apply to those func

RE: [Acegisecurity-developer] why auth user is required before access decision voters are called in HTTP request security?

2004-06-08 Thread Ben Alex
Hi Karel > Why I cannot create my own voters based on just the ConfigAttributeDefinition or for example > IP address from which the request comes? I think that authorized user is needed only for > RoleVoter. If you need IP address restrictions or similar which are not specific t

Re: [Acegisecurity-developer] DaoAuthenticationProvider doesn't work with passwordEncoder in 0.51

2004-06-08 Thread Karel Miarka
Ben, try this: In your Contacts example application I have done those changes in applicationContext.xml: 1) changed the password of marrisa to be MD5 encrypted 2) added passwordEncoder bean 3) used this passwordEncoder in daoAuthenticationProvider The whole part of changed config:

Re: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-08 Thread Karel Miarka
Ben, Thank you very much for the explanation. Just another possible solution occured to me: 1) to define "ask" functions like this in secured beans: public boolean canModify(MyBean obj) { return true; } public boolen canInsert() { return true; } 2) apply to those functions the required role

[Acegisecurity-developer] why auth user is required before access decision voters are called in HTTP request security?

2004-06-08 Thread Karel Miarka
Hi,   2 days ago I have pointed out a problem with accessing a Login page which is located in the same directory as the other pages which should all be protected. And a question has arised today:   Why I cannot create my own voters based on just the ConfigAttributeDefinition or for example IP

Re: [Acegisecurity-developer] infinite cycle caused by "secured" login page

2004-06-08 Thread Karel Miarka
Colin, I was playing with the 2 prefix solution and I don't like it very much, because I don't see any advantage of this usage of Acegi Security for Tapestry developer, because: 1) I still must have my pages protected using PageValidateListener 2) usage of HTTP request security is anyway problemat