Using a proxy ticket (here
MDA3AAABAVwaUL6fRITMT0eux25M*s2yHbgbhQ3pWf8V8qWpYsaBfMFx-h0dafwwM7OgzxU4blCDgcY
supplied by the parent Moria2-enabled service (through
getProxyTicket
, see separate
SOAP example),
the subservice request an authentication confirmation for the user
belonging to the authentication session pointed to by the proxy
ticket. In addition, the subservice requests the attribute
eduPersonAffiliation.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <m:proxyAuthentication xmlns:m="http://v2_1.webservices.moria.feide.no" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <attributes xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="m0:string[1]"> <m0:item0 xsi:type="xsd:string">eduPersonAffiliation</m0:item0> </attributes> <proxyTicket xsi:type="xsd:string">MDA3AAABAVwaUL6fRITMT0eux25M*s2yHbgbhQ3pWf8V8qWpYsaBfMFx-h0dafwwM7OgzxU4blCDgcY</proxyTicket> </m:proxyAuthentication> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Moria2 has checked the subservice's authorization data and found the above request to be valid. The requested multi-valued attribute eduPersonAffiliation is returned.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:proxyAuthenticationResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://v2_1.webservices.moria.feide.no"> <ns1:proxyAuthenticationReturn xsi:type="soapenc:Array" soapenc:arrayType="ns2:Attribute[1]" xmlns:ns2="https://login.feide.no/moria/v2_1/Authentication" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <item href="#id0"/> </ns1:proxyAuthenticationReturn> </ns1:proxyAuthenticationResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Attribute" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="https://login.feide.no/moria/v2_1/Authentication"> <name xsi:type="xsd:string">eduPersonAffiliation</name> <values xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[4]"> <item>employee</item> <item>staff</item> <item>student</item> <item>test user</item> </values> </multiRef> </soapenv:Body> </soapenv:Envelope>