sinam09

WSS Authentication for TEWS

Blog Post created by sinam09 Employee on Feb 10, 2018

Identity Manager TEWS Authentication using WSS Username Token example:

 

The only wss username token profile supported as of Identity Manager 14.1 is that of PasswordText.

 

SOAP REQUEST

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-4">
<wsse:Username>superadmin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Password01</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<wsdl:TaskContext>
<wsdl:admin_id>uid=superadmin,ou=Security,o=forward,c=us</wsdl:admin_id>
</wsdl:TaskContext>
<wsdl:ViewUserSearch>
<wsdl:Subject index="?">
<wsdl:FriendlyName>amit</wsdl:FriendlyName>
</wsdl:Subject>
</wsdl:ViewUserSearch>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP RESPONSE

 

<soapenv:Envelope xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://tews6/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ViewUserSearchResult>
<ImsStatus version="6.0">
<transactionId>7f7dddd4-f5ec5217-0854d9cb-9780575</transactionId>
</ImsStatus>
<ResultItem>
<OID>uid=sinam10,ou=InformationTechnology,o=forward,c=us</OID>
<_PCT_ORG_MEMBERSHIP_NAME_PCT_>
<DISPLAY_NAME>Organization Name</DISPLAY_NAME>
<ATTR_NAME>%ORG_MEMBERSHIP_NAME%</ATTR_NAME>
<ATTR_VALUE>InformationTechnology</ATTR_VALUE>
<ATTR_PERMISSION>ReadWrite</ATTR_PERMISSION>
</_PCT_ORG_MEMBERSHIP_NAME_PCT_>
<_PCT_LAST_NAME_PCT_>
<DISPLAY_NAME>Last Name</DISPLAY_NAME>
<ATTR_NAME>%LAST_NAME%</ATTR_NAME>
<ATTR_VALUE>Sinha</ATTR_VALUE>
<ATTR_PERMISSION>ReadWrite</ATTR_PERMISSION>
</_PCT_LAST_NAME_PCT_>
<_PCT_USER_ID_PCT_>
<DISPLAY_NAME>User ID</DISPLAY_NAME>
<ATTR_NAME>%USER_ID%</ATTR_NAME>
<ATTR_VALUE>amit</ATTR_VALUE>
<ATTR_PERMISSION>ReadWrite</ATTR_PERMISSION>
</_PCT_USER_ID_PCT_>
<_PCT_FIRST_NAME_PCT_>
<DISPLAY_NAME>First Name</DISPLAY_NAME>
<ATTR_NAME>%FIRST_NAME%</ATTR_NAME>
<ATTR_VALUE>Amit</ATTR_VALUE>
<ATTR_PERMISSION>ReadWrite</ATTR_PERMISSION>
</_PCT_FIRST_NAME_PCT_>
</ResultItem>
</ViewUserSearchResult>
</soapenv:Body>
</soapenv:Envelope>

Outcomes