Author: mposolda
Date: 2012-01-27 08:54:16 -0500 (Fri, 27 Jan 2012)
New Revision: 1346
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/STSClient.java
Log:
PLFED-260 Avoid to use null ID for UsernameToken in STSClient.issueTokenOnBehalfOf
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/STSClient.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/STSClient.java 2012-01-20
17:57:40 UTC (rev 1345)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/STSClient.java 2012-01-27
13:54:16 UTC (rev 1346)
@@ -258,7 +258,7 @@
private RequestSecurityToken setOnBehalfOf(Principal principal, RequestSecurityToken
request)
{
if (principal != null)
-
request.setOnBehalfOf(WSTrustUtil.createOnBehalfOfWithUsername(principal.getName(),
null));
+
request.setOnBehalfOf(WSTrustUtil.createOnBehalfOfWithUsername(principal.getName(),
"ID"));
return request;
}
Show replies by date