Sample Policy

The sample file for user authentication using the XML file is located as follows:

ASG_CONFIG_HOME/BookQuerySecurity/security/policy/AuthenticationByXml.policy

AuthenticationByXml.policy

<wsp:Policy
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    xmlns:wssp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
    xmlns:tpa="http://xsd.tns.tibco.com/governance/policy/action/2009" >
    <wsp:All>
        <wsp:ExactlyOne>
            <tpa:AuthenticationByJaas>
                <wssp:SupportingTokens>
                    <tpa:ExactlyOne>
                        <wssp:HttpBasicAuthentication />
                    </tpa:ExactlyOne>
                </wssp:SupportingTokens>
                <tpa:SharedResourceLoginModule ResourceInstance="XmlAsp" />
            </tpa:AuthenticationByJaas>
        </wsp:ExactlyOne>
    </wsp:All>
</wsp:Policy>