On Wed, Jul 31, 2013 at 10:33 PM, Amila De Silva <[email protected]> wrote:

> Hi,
>
> *Usecase*:
> User has a secured backend fronted by API Manager. The exposed API will be
> accessed using an Access Token. When a request hits the Gateway, APIM
> should find the username associated with the access token , use it for
> setting the user name in UserName Token, sign it and send it to the backend.
>
> With the current implementation, username can be made available in the
> message context.
> We tried achieving the above by implementing
> a RampartConfigCallbackHandler and setting the username within its update
> method.But the problem is when execution reaches to
> the ConfigCallbackHandler , the message context couldn't be accessed.
>
> What should be the proper way to do this?
>

Hi Amila,

This evening I went through some Rampart codes and found this is possible.
I just put a post in my blog before it get erase fro my memory
http://ssagara.blogspot.com/2013/07/wso2-esb-set-ws-security-ut-user-names.html.
Let's have a chat tomorrow and proceed with remaining  items.

Thanks !

>
> --
> *Amila De Silva*
> *
> *
> WSO2 Inc.*
> *
> mobile :(+94) 775119302
>
>


-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;    http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to