OnBehalfOf in RST

View: New views
4 Messages — Rating Filter:   Alert me  

OnBehalfOf in RST

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
is there any chance to pass a wsp:OnBehalfOf section on the requestsecuritytoken message sent to STS?
I need to pass credentials to STS in this way, but for now it's a no go.

Thanks in advance,
Eumate
[Message sent by forum member 'eumate' (eumate)]

http://forums.java.net/jive/thread.jspa?messageID=354514

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: OnBehalfOf in RST

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes.

You can use STSIssuedTokenFeature with STSIssuedTokenConfiguration
to inject OnBehalfOf token:

STSIssuedTokenConfiguration config = new DefaultSTSIssuedTokenConfiguration();
Element oboEle = ...
Token oboToken = new GenericToken(oboEle);
((DefaultSTSIssuedTokenConfiguration)config).setOBOToken(oboToken);
STSIssuedTokenFeature feature = new STSIssuedTokenFeature(config);
                org.me.calculator.client.CalculatorWS port = service.getCalculatorWSPort(new WebServiceFeature[]{feature});


Thanks!

Jiandong
[Message sent by forum member 'jdg6688' (jdg6688)]

http://forums.java.net/jive/thread.jspa?messageID=354518

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: OnBehalfOf in RST

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Now it's working!
Thanks,
Eumate
[Message sent by forum member 'eumate' (eumate)]

http://forums.java.net/jive/thread.jspa?messageID=354693

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: OnBehalfOf in RST

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nice. Thank you for letting us know.
[Message sent by forum member 'jdg6688' (jdg6688)]

http://forums.java.net/jive/thread.jspa?messageID=354696

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...