You need to add an AttributeStatementProvider to your
SAMLTokenProvider to populate an AttributeStatement. One is already
available in the source to translate claims into an
AttributeStatement:

http://svn.apache.org/viewvc/cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsAttributeStatementProvider.java?view=markup

See here for an example that uses two custom AttributeStatementProviders:

http://svn.apache.org/viewvc/cxf/trunk/services/sts/systests/advanced/src/test/resources/org/apache/cxf/systest/sts/deployment/cxf-sts.xml?view=markup

<bean id="transportSamlTokenProvider"
class="org.apache.cxf.sts.token.provider.SAMLTokenProvider">
                <property name="attributeStatementProviders"
ref="attributeStatementProvidersList" />
        </bean>

        <util:list id="attributeStatementProvidersList">
                <ref bean="defaultAttributeProvider" />
                <ref bean="customAttributeProvider" />
        </util:list>

        <bean id="defaultAttributeProvider"
                
class="org.apache.cxf.sts.token.provider.DefaultAttributeStatementProvider">
        </bean>

        <bean id="customAttributeProvider"
                
class="org.apache.cxf.systest.sts.deployment.CustomAttributeStatementProvider">
        </bean>

Colm.

On Tue, May 15, 2012 at 3:59 PM, DTaylor <[email protected]> wrote:
> Hi Colm,
>
> I have attached the STS configuration.
>
> Thanks for your help,
>
> Dan.
> http://cxf.547215.n5.nabble.com/file/n5707897/sts-conf.xml sts-conf.xml
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Accessing-Claims-in-a-client-tp5698187p5707897.html
> Sent from the cxf-user mailing list archive at Nabble.com.



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to