Http
The HttpSyncSource
can be used to load data from any web API.
<HttpSyncSource name="Custom HTTP" queryKey="OneOffixxIdentifier">
<Endpoint method="GET" url="http://127.0.0.1:8080/test/{queryKey}" />
<Authentication type="Basic">
<Username>Username</Username>
<Password>Password</Password>
<Domain>Domain</Domain>
</Authentication>
<ResultMapping>
<Mapping Type="xml">
<Map Source="//Identifikation[@Name='ID']" Target="PropertyX" />
<If Condition="'1'=='1'">
<Map SourceValue="Hans" Target="PropertyY" />
</If>
<Map Source="//Email" Target="PropertyZ" />
</Mapping>
</ResultMapping>
<Claims>
<Claim type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" property="PropertyX" />
<Claim type="http://schema.oneoffixx.com/ws/2011/01/identity/claims/displayName" property="PropertyY" />
<Claim type="http://schema.oneoffixx.com/ws/2011/01/identity/claims/title" property="PropertyZ">
<Regex match="0" group="0">(?:[\.a-z]+)</Regex>
</Claim>
<Claim type="http://schema.oneoffixx.com/ws/2011/01/identity/claims/domain" property="PropertyZ">
<Regex match="1" group="0">(?:[\.a-z]+)</Regex>
</Claim>
</Claims>
</HttpSyncSource>
Endpoint
The endpoint must be a valid URI, but may contain the placeholder {queryKey}
. This will be replaced by the value of the queryKey
parameter from the SyncSource before the call.
Authentication
Type Authentication type. Possible are:
Basic Basic authentication
Windows Windows authentication
Username Username, always without domain
Password Password, can be in encrypted form or plain text
Domain Domain of the user, optional (only possible for type Windows).
ResultMapping
Currently both XML and JSON are supported. The target
is a value that must correlate with the property parameter of a claim. Details and configuration examples can be found here: Mapping.
PrimeSoft AG, Bahnhofstrasse 4, 8360 Eschlikon, Switzerland