The picketlink.xml at the IDP would be :
<PicketLinkIDP xmlns="urn:picketlink:identity-federation:config:2.1" RoleGenerator="org.picketlink.identity.federation.bindings.jboss.roles.JBossWebRoleGenerator"> <IdentityURL>$
</IdentityURL> <Trust> <Domains>localhost,jboss.com,jboss.org,amazonaws.com</Domains> </Trust>
....
The picketlink.xml at the IDP would be :
<PicketLinkIDP xmlns="urn:picketlink:identity-federation:config:2.1" RoleGenerator="org.picketlink.identity.federation.bindings.jboss.roles.JBossWebRoleGenerator">
{idp.url::http://localhost:8080/idp/}<IdentityURL>$
</IdentityURL>
<Trust>
<Domains>localhost,jboss.com,jboss.org,amazonaws.com</Domains>
</Trust>
....