RE: Re: Re: Re: Re: Need help understanding the correct FLOW

2011-02-02 Thread Randy Paries
Fabian thanks alot for all your help I now have that working. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2701983

Re: Re: Re: Re: Re: Need help understanding the correct FLOW

2011-02-02 Thread Fabian Mandelbaum
Good to hear that :-) Good luck with the rest of your project Randy! On Wed, Feb 2, 2011 at 3:30 PM, Randy Paries rtpar...@gmail.com wrote: Fabian thanks alot for all your help I now have that working. -- Fabián Mandelbaum IS Engineer

Re: Re: Re: Re: Need help understanding the correct FLOW

2011-02-01 Thread Fabian Mandelbaum
Hello Randy. Even with HTTP Basic auth the provided credentials (user+pass) are encoded. They are not transmitted like this on the wire: user=the_user password=the_password but, rather, like this, in a standard HTTP header: Authorization Basic YWRtaW5AY2FsZW5jby5jb206MTExMTEx That YW...MTEx

RE: Re: Re: Re: Need help understanding the correct FLOW

2011-01-31 Thread Randy Paries
Fabián, sorry i will try to provide more details. the problem i am having is the what is passed in to verify in my DBverify(see below) the secret is encrypted and i did not encrypt it and i do not know where in the process i am doing something incorrect that it is getting encrypted. In my

Re: Re: Re: Need help understanding the correct FLOW

2011-01-29 Thread Fabian Mandelbaum
Hello Randy, you usually know the hash function to encrypt the secret to persist in encrypted in the DB. So, you just need to get the secret from the request, apply that hash/encryption function, and compare it with the already encrypted value you read from the DB, in the Verifier's verify()

RE: Re: Re: Need help understanding the correct FLOW

2011-01-29 Thread Randy Paries
Fabian, i am getting closer, but i am one step away i think. each time my service is called i pass in an encrypted string I decrypt it and in my ChallengeAuthenticator i have request.setChallengeResponse( new ChallengeResponse( ChallengeScheme.HTTP_COOKIE, keyArray[1],

Re: Re: Need help understanding the correct FLOW

2011-01-27 Thread Fabian Mandelbaum
Hello Randy, indeed your custom Verifier will have to query the DB on each request to, well, verify, the provided credentials are valid. You can also build an in-memory (provided the passwords are stored on the DB already encrypted, to tighten security a bit) credentials 'cache' which is

RE: Re: Need help understanding the correct FLOW

2011-01-26 Thread Randy Paries
Fabian , thanks for the response. that helped, i am now getting closer. So there is one last part i am not getting. from the book there is the example //snippet @Override public Restlet createInboundRoot() { Router router = new Router(getContext()); MapVerifier verifier = new

Re: Need help understanding the correct FLOW

2011-01-23 Thread Fabian Mandelbaum
Hello Randy, 'login' is always a hot topic on RESTful applications. The Restlet flow you mention is basically this: Client --- Request -- Guard -- Protected Server Resource it's the Guard (usually org.restlet.security.ChallengeAuthenticator) the one that authenticates the user, making sure the

Need help understanding the correct FLOW

2011-01-20 Thread Randy Paries
Hello, I am trying to create a RESTful application Server. I am going to use the RestLet framework. As i am designing the URL's i have some questions. This app server is going to be the backend for an iPhone app. The app will require authentication So here is where i get a little confused with