On Wed, Jul 6, 2011 at 9:24 AM, Paulo Borges <[email protected]> wrote: > > Hello: > > BasicAuthSecurityHandler requires to set username and password as Strings. > Is there any way I can reuse the already encoded credentials in http header > in a wink Handler for authentication. The use case is as follows: > > Let's say we have two applications on two different servers [one web > application and one Rest application] both of which authenticate users > against the same [LDAP] repository > > 1- User logs into a Web application using basic authentication > 2- The web application would dispatch calls a wink application [which needs > authentication]. I would like to re-use encoded user credentials in Http > header that comes under property "Authorization" as my authentication token > when I dispatch calls to wink rest service > > Is there a way this can be done ? >
If you are using vanilla basic authentication, the header will contain the user and password in base64 encode form, which you could decode and use ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
