ActAs and Credential Delegation III: Common Issues

Many users have picked up this feature for their applications. These are some common
issues come up so far:

1. When a custom SAML assertion validator is used, the SAML assertion is not available
in the Subject.

In this case, you need to use the extended version com.sun.xml.wss.impl.callback.SamlValidator and to add explicitly the DOM based saml assertion to the public credentials of the Subject in your implementation of the method validate(XMLStreamReader assertion, Map runtimeProps, Subject clientSubject) and validate(Element assertion, Map runtimeProps, Subject clientSubject) in the interface.

2. ActAs is not called in your custom STSAttributeProvider:

You need to use the WSTrustContractImpl for your STS as specified in the STSConfiguration in the sts wsdl:
     <tc:STSConfiguration xmlns:tc="http://schemas.sun.com/ws/2006/05/trust/server"
         encryptIssuedKey="true" encryptIssuedToken="false">
         <tc:LifeTime>36000</tc:LifeTime>
        <tc:Contract>com.sun.xml.ws.security.trust.impl.WSTrustContractImpl</tc:Contract>

If you use Netbenas to create STS, IssueSAMLTokenContractImpl is set by default. You need to change it to WSTrustContractImpl for "ActAs" support

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Jiandong Guo

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today