Hi,
I am trying to get the LTPA validation using the STS working.
I have setup a chain which validates the LTPA (provided the keyfile and password) and issues a STUU.
I am using the LocalSTSClient to call the STS with the following code (I was inspired by Jack Yarborough ):
function makeLtpaValidationRequest(ltpa) {
trace("entering makeLtpaValidationRequest(ltpa)");
// We use the validate request type
var requestType = "http://schemas.xmlsoap.org/ws/2005/02/trust/Validate";
// Printing out the at for debug purposes
trace("makeLtpaValidationRequest :: Input ltpa : " + ltpa.toString());
// First we need to build a binary security token from the Ltpa:
var strxmlBst = '<wss:BinarySecurityToken xmlns:wss="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" wss:EncodingType="Base64Binary" wss:ValueType="wsst:LTPA" xmlns:wsst="http://www.ibm.com/websphere/appserver/tokentype/5.0.2">'+ltpa+'</wss:BinarySecurityToken>'
trace("makeLtpaValidationRequest :: strxmlBst : " + strxmlBst);
var xmlBst = IDMappingExtUtils.stringToXMLElement(strxmlBst);
// validate the token
var token = LocalSTSClient.doRequest(requestType, "urn:ltpa:validate:customer", "urn:ltpa:validate:customer", xmlBst, null);
// Token is valid. Parse it as an stsuu
var tokenStsuu = new STSUniversalUser();
if(token.errorMessage != null) {
trace(token.errorMessage);
} else {
tokenStsuu.fromXML(token.token);
}
return tokenStsuu;
}
In the log I get the message:
[10/25/19 14:45:34:330 CEST] 00020876 com.tivoli.am.fim.trustserver.sts.STSModuleChain I com.tivoli.am.fim.trustserver.sts.STSModuleException: FBTSTS073E The token presented is not an LTPA token.
But no reason why it was not recognised as a LTPA token.
I hope someone can help me with this.
------------------------------
Regards,
Paul van den Brink
------------------------------