UNPKG

1.74 kBXMLView Raw
1<?xml version="1.0" encoding="UTF-8"?>
2<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:wsa="http://www.w3.org/2005/08/addressing" 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" xmlns:saml="oasis:names:tc:SAML:1.0:assertion">
3 <S:Header>
4 <!-- wsa header -->
5 <sbf:Framework xmlns:sbf="urn:liberty:sb" version="2.0"/>
6 <sb:Sender xmlns:sb="urn:liberty:sb:2006-08" providerID="{{ &ECP_SP_ID }}"/>
7 <wsa:MessageID>urn:uuid:{{ WSSE_MESSAGE_ID }}</wsa:MessageID>
8 <wsa:To>{{ &ECP_DESTINATION_URL }}</wsa:To>
9 <wsa:Action>urn:liberty:ssos:2006-08:AuthnRequest</wsa:Action>
10
11 <!-- security token -->
12 <wsse:Security>{{ &WSSE_SAML_TOKEN }}</wsse:Security>
13 </S:Header>
14 <S:Body>
15 <samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
16 AssertionConsumerServiceURL="{{ &ECP_CONSUMER_URL }}" ID="{{ ECP_REQUEST_ID }}"
17 IssueInstant="{{ ECP_REQUEST_INSTANT }}" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS" Version="2.0">
18
19 <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">{{ &ECP_SP_ID }}</saml:Issuer>
20 <samlp:NameIDPolicy AllowCreate="1" format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"/>
21 <saml:AudienceRestriction xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
22 <!-- make assertion available to IdP to enable delegation requests -->
23 <saml:Audience xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">{{ &ECP_IDP_ID }}</saml:Audience>
24 </saml:AudienceRestriction>
25 </samlp:AuthnRequest>
26 </S:Body>
27</S:Envelope>