Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread Amin Lalji
How about something like this? Client Application passes in username and password (text version input by user) to WebService. WebService looks up user, hashes text password and compares against hashed password in database/user object... If match -> authenticated... public class Authentication

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread Nathan Anderson
The way that comes to mind would be to make your own AuthenticationProvider. Depending on your needs [e.g. if you need built in AppFuse features like roles] you may need to extend the DaoAuthenticationProvider so you can still use the AppFuse User object as your UserDetails object. Does tha

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread sionsmith
Nathan: Yes the plan is to use the webservice as the authentication mechanism. We're using SSL so not worrying about encryption at this time. What i want to be able to do it use all the features of appfuse like the security filter etc. but just do the authentication through the webservice. Mike:

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread sionsmith
Nathan: Yes the plan is to use the webservice as the authentication mechanism. We're using SSL so not worrying about encryption at this time. What i want to be able to do it use all the features of appfuse like the security filter etc. but just do the authentication through the webservice. Mike:

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread Nathan Anderson
So are you using the webservice as your authentication mechanism? Or is the webservice being used to determine if an account can be created? Nathan sionsmith wrote: Thanx Mike i've now got that working and talking to the webservice. Woohoo - i'm thinknig that was the easy part compared to wh

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread Michael Horwitz
On 4/12/07, sionsmith <[EMAIL PROTECTED]> wrote: Thanx Mike i've now got that working and talking to the webservice. Woohoo - i'm thinknig that was the easy part compared to what i now have to do. I have to use an 'authenticAccount' method on the webservice to authentic the user which simply ta

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread sionsmith
Thanx Mike i've now got that working and talking to the webservice. Woohoo - i'm thinknig that was the easy part compared to what i now have to do. I have to use an 'authenticAccount' method on the webservice to authentic the user which simply takes the username & password and returns me true or f

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread Michael Horwitz
On 4/12/07, sionsmith <[EMAIL PROTECTED]> wrote: Arrrh i see now! thanx Mike - what about the destory method tho? Do i place that in the configure too? Yup. Add the attribute destroy-method="destroy_method_name". Mike. Thanx sion Michael Horwitz wrote: > > On 4/12/07, sionsmith <[EMAIL P

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread sionsmith
Arrrh i see now! thanx Mike - what about the destory method tho? Do i place that in the configure too? Thanx sion Michael Horwitz wrote: > > On 4/12/07, sionsmith <[EMAIL PROTECTED]> wrote: >> >> >> Guys & Girls, >> >> I'm using the appfuse jsf framework - we need to talk to a webservice, i >>

Re: [appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread Michael Horwitz
On 4/12/07, sionsmith <[EMAIL PROTECTED]> wrote: Guys & Girls, I'm using the appfuse jsf framework - we need to talk to a webservice, i have already been given a java client class which talks to the service - however i'm unsure of the best way or how to load this client and run its init method

[appfuse-user] Using Appfuse With WebServices

2007-04-12 Thread sionsmith
Guys & Girls, I'm using the appfuse jsf framework - we need to talk to a webservice, i have already been given a java client class which talks to the service - however i'm unsure of the best way or how to load this client and run its init method on server startup? I've had look on here, and at th