Commit d21555de authored by Tony Schaller's avatar Tony Schaller

First draft of DemoXua refactoring for .Net (does not work under .Net, yet).

git-svn-id: https://svn.code.sf.net/p/ehealthconnector/code/trunk@1684 e99adb7c-5e35-42fd-8d1b-cdb378af05e8
parent f6ae1fdc
This diff is collapsed.
This diff is collapsed.
......@@ -1399,5 +1399,41 @@ namespace eHealthConnectorDemo
{
editFile(txtCDADemosValidationConfig.Text, EDITOR_ULTRAEDIT);
}
private void btnDemoXua_Click(object sender, EventArgs e)
{
DemoXua demo = new DemoXua(demoRscDir, txtDemoXuaLog);
txtDemoXuaLog.Text="Executing DemoXua...\r\n";
Application.DoEvents();
if (opt_IdP_Authentication_Request_By_SOAP_to_eHealthSuisse_IdP_simulator.Checked)
{
demo.doDemo("--IdpSoapEhs -u=aamrein -p=azerty -o=demoxua-out-dotnet/idp".Split(" ".ToCharArray()[0]));
}
if (opt_IdP_Authentication_Request_By_HTTPPOST_and_custom_protocol_handler.Checked)
{
demo.doDemo("--IdpProtoSoe -y=ehcdemo -o=demoxua-out-dotnet/idp".Split(" ".ToCharArray()[0]));
}
if (opt_IdP_Authentication_Request_By_HTTPPOST_using_the_HIN_Client_to_authenticate_on_IdP_of_the_commercial_product_of_HIN.Checked)
{
demo.doDemo("--IdpHttpHinClient -x=localhost:5016 -k=hin-user-keystore.p12:password:pkcs12:\"alias\" -o=demoxua-out-dotnet/idp".Split(" ".ToCharArray()[0]));
}
if (opt_XUser_Assertion_Request_to__eHealth_Suisse_XAP_Simulator.Checked)
{
demo.doDemo("--XapEhs -i=rsc/demoXua/xap/ehs_xaprequest_input.xml -o=demoxua-out-dotnet/xap".Split(" ".ToCharArray()[0]));
}
if (opt_Privacy_Policy_Query_to_eHealth_Suisse_PPQ_Repository_Simulator.Checked)
{
demo.doDemo("--ChPpqEhs -m=query -i=rsc/demoXua/ppq/ehs_ppqrequest_input.xml -o=demoxua-out-dotnet/ppq".Split(" ".ToCharArray()[0]));
}
if (opt_Privacy_Policy_Feed_to_eHealth_Suisse_PPQ_Repository_Simulator.Checked)
{
demo.doDemo("-ChPpqEhs -m=add -n=rsc/demoXua/ppf/ehs_addpolicy.xml -i=rsc/demoXua/ppq/ehs_ppqrequest_input.xml -o=demoxua-out-dotnet/ppf".Split(" ".ToCharArray()[0]));
}
Application.DoEvents();
txtDemoXuaLog.AppendText("----------------------------------------\r\n");
txtDemoXuaLog.AppendText("Demo finished\r\n");
Application.DoEvents();
}
}
}
......@@ -204,6 +204,7 @@
<Compile Include="DemoValidationHelper.cs" />
<Compile Include="DemoValidationRandomThread.cs" />
<Compile Include="DemoXua.cs" />
<Compile Include="DemoXuaOutputLogger.cs" />
<Compile Include="DotNetUtil.cs" />
<Compile Include="EnumerableCollection.cs" />
<Compile Include="MainForm.cs">
......
......@@ -209,6 +209,7 @@
<Compile Include="PdfCreator.cs" />
<Compile Include="ProgramConsole.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="DemoXuaOutputLogger.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
......
msg "%username%" %TEMP% %1
@echo %1 > %TEMP%\ehcdemo.io
#!/bin/bash
FILENAME="/tmp/"`echo "$*" | cut -d":" -f1`".io"
#/usr/bin/notify-send 'ehcdemo handler' "$FILENAME, $*"
echo "$*" > $FILENAME
exit 0
<saml:Assertion ID="_b882d240-45cd-4fa3-aa9f-65394115d0e0" Version="2.0" IssueInstant="2014-04-09T19:10:00.294Z"
xmlns:hl7="urn:hl7-org:v3" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
xmlns:xacml-saml="urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:assertion"
xmlns:xacml-samlp="urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<saml:Issuer NameQualifier="urn:e-health-suisse:community-index">urn:oid:1.3.6.1.4.1.21367.2017.2.6.2</saml:Issuer>
<saml:Statement xsi:type="xacml-saml:XACMLPolicyStatementType" xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
<PolicySet PolicyCombiningAlgId="urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny-overrides"
PolicySetId="urn:uuid:356d68d7-44f0-4575-8647-7f4ea1499122">
<Description>Patient specific PolicySet for EPD Setup 21 - granting full access to a patient at EPD setup</Description>
<Target>
<Subjects>
<Subject>
<SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">7601000080776</AttributeValue>
<SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
DataType="http://www.w3.org/2001/XMLSchema#string" />
</SubjectMatch>
<SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">urn:gs1:gln</AttributeValue>
<SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id-qualifier"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
</SubjectMatch>
<SubjectMatch MatchId="urn:hl7-org:v3:function:CV-equal">
<AttributeValue DataType="urn:hl7-org:v3#CV">
<hl7:CodedValue code="PAT" codeSystem="2.16.756.5.30.1.127.3.10.6" />
</AttributeValue>
<SubjectAttributeDesignator DataType="urn:hl7-org:v3#CV" AttributeId="urn:oasis:names:tc:xacml:2.0:subject:role" />
</SubjectMatch>
</Subject>
</Subjects>
<Resources>
<Resource>
<ResourceMatch MatchId="urn:hl7-org:v3:function:II-equal">
<AttributeValue DataType="urn:hl7-org:v3#II">
<hl7:InstanceIdentifier root="2.16.756.5.30.1.127.3.10.3" extension="761337610455909127" />
</AttributeValue>
<ResourceAttributeDesignator DataType="urn:hl7-org:v3#II" AttributeId="urn:e-health-suisse:2015:epr-spid" />
</ResourceMatch>
</Resource>
</Resources>
</Target>
<Policy PolicyId="e0187e8b-d913-4a24-98f4-14b2a6f0ef04" RuleCombiningAlgId="identifier:rule-combining-algorithm:permit-overrides">
<Description>Sample Policy to be added</Description>
<Target />
<Rule RuleId="3d37e220-4dec-11e3-8f96-0800200c9a66" Effect="Permit">
<Target>
<Resources>
<Resource>
<ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">urn:ihe:2017:record:interactions</AttributeValue>
<ResourceAttributeDesignator AttributeId="urn:ihe-d:cookbook:2013:resource-type"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
</ResourceMatch>
</Resource>
</Resources>
<Actions>
<Action>
<ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">urn:ihe:2017:record:search-response</AttributeValue>
<ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
</ActionMatch>
</Action>
<Action>
<ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">urn:ihe:2017:record:view-all-response</AttributeValue>
<ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
</ActionMatch>
</Action>
</Actions>
</Target>
<Condition>
<Apply FunctionId="urn:ihe:2017:record:function:interactedPreviously">
<SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xspa:1.0:subject:organization-id"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
<ResourceAttributeDesignator AttributeId="urn:ihe:2017:record:latest-organization-interaction"
DataType="urn:ihe:2017:record#interaction" />
</Apply>
</Condition>
</Rule>
</Policy>
<PolicySetIdReference>urn:e-health-suisse:2015:policies:access-level:delegation-and-normal</PolicySetIdReference>
</PolicySet>
</saml:Statement>
</saml:Assertion>
<saml:Assertion Version="2.0" ID="_9a71a18c-d7a7-4931-9168-150a8fbc5dc2" IssueInstant="2017-11-16T03:34:53Z"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xacml="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
<saml:Issuer NameQualifier="urn:e-health-suisse:community-index">urn:oid:1.3.6.1.4.1.21367.2017.2.6.2</saml:Issuer>
<saml:Statement xsi:type="epr:XACMLPolicySetIdReferenceStatementType">
<xacml:PolicySetIdReference>urn:uuid:356d68d7-44f0-4575-8647-7f4ea1499122</xacml:PolicySetIdReference>
</saml:Statement>
</saml:Assertion>
\ No newline at end of file
<saml:Assertion ID="_b882d240-45cd-4fa3-aa9f-65394115d0e0" Version="2.0" IssueInstant="2014-04-09T19:10:00.294Z"
xmlns:hl7="urn:hl7-org:v3" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
xmlns:xacml-saml="urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:assertion"
xmlns:xacml-samlp="urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
<saml:Issuer NameQualifier="urn:e-health-suisse:community-index">urn:oid:1.3.6.1.4.1.21367.2017.2.6.2</saml:Issuer>
<saml:Statement xsi:type="xacml-saml:XACMLPolicyStatementType" >
<PolicySet PolicyCombiningAlgId="urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny-overrides"
PolicySetId="urn:uuid:356d68d7-44f0-4575-8647-7f4ea1499122">
<Description>Patient specific PolicySet for EPD Setup 21 - granting full access to a patient at EPD setup</Description>
<Target>
<Subjects>
<Subject>
<SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">7601000080776</AttributeValue>
<SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
DataType="http://www.w3.org/2001/XMLSchema#string" />
</SubjectMatch>
<SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">urn:gs1:gln</AttributeValue>
<SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id-qualifier"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
</SubjectMatch>
<SubjectMatch MatchId="urn:hl7-org:v3:function:CV-equal">
<AttributeValue DataType="urn:hl7-org:v3#CV">
<hl7:CodedValue code="PAT" codeSystem="2.16.756.5.30.1.127.3.10.6" />
</AttributeValue>
<SubjectAttributeDesignator DataType="urn:hl7-org:v3#CV" AttributeId="urn:oasis:names:tc:xacml:2.0:subject:role" />
</SubjectMatch>
</Subject>
</Subjects>
<Resources>
<Resource>
<ResourceMatch MatchId="urn:hl7-org:v3:function:II-equal">
<AttributeValue DataType="urn:hl7-org:v3#II">
<hl7:InstanceIdentifier root="2.16.756.5.30.1.127.3.10.3" extension="761337610455909127" />
</AttributeValue>
<ResourceAttributeDesignator DataType="urn:hl7-org:v3#II" AttributeId="urn:e-health-suisse:2015:epr-spid" />
</ResourceMatch>
</Resource>
</Resources>
</Target>
<Policy PolicyId="e0187e8b-d913-4a24-98f4-14b2a6f0ef04" RuleCombiningAlgId="identifier:rule-combining-algorithm:permit-overrides">
<Description>Sample Policy to be updated</Description>
<Target />
<Rule RuleId="3d37e220-4dec-11e3-8f96-0800200c9a66" Effect="Permit">
<Target>
<Resources>
<Resource>
<ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">urn:ihe:2017:record:interactions</AttributeValue>
<ResourceAttributeDesignator AttributeId="urn:ihe-d:cookbook:2013:resource-type"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
</ResourceMatch>
</Resource>
</Resources>
<Actions>
<Action>
<ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">urn:ihe:2017:record:search-response</AttributeValue>
<ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
</ActionMatch>
</Action>
<Action>
<ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">urn:ihe:2017:record:view-all-response</AttributeValue>
<ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
</ActionMatch>
</Action>
</Actions>
</Target>
<Condition>
<Apply FunctionId="urn:ihe:2017:record:function:interactedPreviously">
<SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xspa:1.0:subject:organization-id"
DataType="http://www.w3.org/2001/XMLSchema#anyURI" />
<ResourceAttributeDesignator AttributeId="urn:ihe:2017:record:latest-organization-interaction"
DataType="urn:ihe:2017:record#interaction" />
</Apply>
</Condition>
</Rule>
</Policy>
<PolicySetIdReference>urn:e-health-suisse:2015:policies:access-level:delegation-and-normal</PolicySetIdReference>
</PolicySet>
</saml:Statement>
</saml:Assertion>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<wst:RequestSecurityTokenResponse xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
<wst:RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue</wst:RequestType>
<wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</wst:TokenType>
<wst:Status>
<wst:Code>http://docs.oasis-open.org/ws-sx/ws-trust/200512/status/valid</wst:Code>
</wst:Status>
<wst:RequestedSecurityToken>
<saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xs="http://www.w3.org/2001/XMLSchema"
ID="_4cd7cfe1-0c9e-40c4-b3bd-1e1b28af7d3c" IssueInstant="2018-05-04T13:30:31.853Z" Version="2.0">
<saml2:Issuer>https://ehealthsuisse.ihe-europe.net/STS</saml2:Issuer>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<ds:Reference URI="#_4cd7cfe1-0c9e-40c4-b3bd-1e1b28af7d3c">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>iGrHxJKdQNOAmaUCbhywhmDtvz0=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>h4SUpNR999QG/YJen63UeubiSd+b9fyWcGFel/XcPI/WnzLOJ9l4MYuX9jU5gbZurz+nY3fMnHB5hAWJkatOcog5MiodlYDlbfZ7xvCFli4pSuxL7ZRTi0MDrD1ttdbmSgStixEHrCUTCS8DYblYs4oytFSEVqjhLxwZw3faRzU=</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>MIIDhjCCAu+gAwIBAgIBCzANBgkqhkiG9w0BAQ0FADBFMQswCQYDVQQGEwJDSDEMMAoGA1UECgwD
SUhFMSgwJgYDVQQDDB9laGVhbHRoc3Vpc3NlLmloZS1ldXJvcGUubmV0IENBMB4XDTE3MDMyMjE2
MDgyNFoXDTI3MDMyMjE2MDgyNFowQjELMAkGA1UEBhMCQ0gxDDAKBgNVBAoMA0lIRTElMCMGA1UE
AwwcZWhlYWx0aHN1aXNzZS5paGUtZXVyb3BlLm5ldDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
gYEAw5dTR17Y1w9cIhY0XSP9Cx7ThQ05YZTf4pKGgGb5ZZbFqm9Q5EKIrJT2EHE7MGO6D/miU3Jt
BUmexcf9ceftSXEW+FaNVAqDePBst4l2RSZeJvez0FmcbWcPeufsUumcGXGAJmNmSviMLd1IrMEh
whv6wuQvspY0Y2wAOvSkUmECAwEAAaOCAYcwggGDMEoGA1UdHwRDMEEwP6A9oDuGOWh0dHBzOi8v
ZWhlYWx0aHN1aXNzZS5paGUtZXVyb3BlLm5ldC9nc3MvY3JsLzIyL2NhY3JsLmNybDBIBglghkgB
hvhCAQQEOxY5aHR0cHM6Ly9laGVhbHRoc3Vpc3NlLmloZS1ldXJvcGUubmV0L2dzcy9jcmwvMjIv
Y2FjcmwuY3JsMEgGCWCGSAGG+EIBAwQ7FjlodHRwczovL2VoZWFsdGhzdWlzc2UuaWhlLWV1cm9w
ZS5uZXQvZ3NzL2NybC8yMi9jYWNybC5jcmwwCQYDVR0TBAIwADAOBgNVHQ8BAf8EBAMCBPAwEQYJ
YIZIAYb4QgEBBAQDAgXgMB0GA1UdDgQWBBSG1oKBcZvZJWlqKJ9i/67Htv7frDAfBgNVHSMEGDAW
gBQol+/d3jFYbFbyhkbiEeQ+OHFfLzAzBgNVHSUELDAqBggrBgEFBQcDAgYIKwYBBQUHAwQGCisG
AQQBgjcUAgIGCCsGAQUFBwMBMA0GCSqGSIb3DQEBDQUAA4GBAI1OT9P0oSrfNedZ4T4CfxPoUOFC
D1tU2X3iRAZFPoUHeFBiccsqMYnNlo3S2cKP6gxt+QPTGNSs171sS0MLa73aR8qrQC+vl5ZP7q4+
/3hYQLe+z3DjSflZNW6shSAp4vD43Dnd8OzgX41LRw1gSEWuAK/+7CedM6IkFEUV2NSF
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<saml2:Subject>
<saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" NameQualifier="urn:gs1:gln">7601000080776</saml2:NameID>
<saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml2:SubjectConfirmationData InResponseTo="_43ef3e4fefdb03a31781d7ea52617674bcd25a6c26"
NotOnOrAfter="2018-05-04T15:30:31.853Z" Recipient="https://sp.community.ch/epd" />
</saml2:SubjectConfirmation>
</saml2:Subject>
<saml2:Conditions NotBefore="2018-05-04T13:30:31.853Z" NotOnOrAfter="2018-05-04T15:30:31.853Z">
<saml2:AudienceRestriction>
<saml2:Audience>urn:e-health-suisse:token-audience:all-communities</saml2:Audience>
</saml2:AudienceRestriction>
</saml2:Conditions>
<saml2:AuthnStatement AuthnInstant="2018-05-04T13:30:31.853Z" SessionNotOnOrAfter="2018-05-04T15:30:31.853Z">
<saml2:AuthnContext>
<saml2:AuthnContextClassRef>http://bag.admin.ch/LoA/3</saml2:AuthnContextClassRef>
</saml2:AuthnContext>
</saml2:AuthnStatement>
<saml2:AttributeStatement>
<saml2:Attribute Name="urn:oasis:names:tc:xspa:1.0:subject:subject-id">
<saml2:AttributeValue>Alexander Maes</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="urn:oasis:names:tc:xacml:2.0:subject:role">
<saml2:AttributeValue>
<Role xmlns="urn:hl7-org:v3" code="HCP" codeSystem="2.16.756.5.30.1.127.3.10.4" codeSystemName="eHealth Suisse EPR Akteure"
displayName="Behandelnde(r)" xs:type="CE" />
</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="urn:oasis:names:tc:xspa:1.0:subject:organization">
<saml2:AttributeValue>Uni Spital Zurich</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="urn:oasis:names:tc:xspa:1.0:subject:organization-id">
<saml2:AttributeValue>7601001355781</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="urn:oasis:names:tc:xacml:2.0:resource:resource-id">
<saml2:AttributeValue>761337610435209810^^^SPID&amp;amp;2.16.756.5.30.1.127.3.10.3&amp;amp;ISO</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="urn:oasis:names:tc:xspa:1.0:subject:purposeofuse">
<saml2:AttributeValue>
<PurposeOfUse xmlns="urn:hl7-org:v3" code="NORM" codeSystem="2.16.756.5.30.1.127.3.10.5"
codeSystemName="eHealth Suisse Verwendungszweck" displayName="Normalzugriff" xs:type="CE" />
</saml2:AttributeValue>
</saml2:Attribute>
</saml2:AttributeStatement>
</saml2:Assertion>
</wst:RequestedSecurityToken>
<wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>https://ehealthsuisse.ihe-europe.net:10443/ppq-repository</wsa:Address>
</wsa:EndpointReference>
</wsp:AppliesTo>
</wst:RequestSecurityTokenResponse>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
Destination="https://xua.hin.ch/sts/services/SecurityTokenServiceProvider" ID="Response_c091f3bc3ba86b2ea8cb51ee9dbe89b45415af52"
InResponseTo="99a217659863488f877d0c7744ffe123" IssueInstant="2018-05-04T04:59:26.454Z" Version="2.0">
<saml2:Issuer>http://fed.hin.ch/saml/2.0/epd/</saml2:Issuer>
<saml2p:Status>
<saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
</saml2p:Status>
<saml2:Assertion ID="wur8fhi2fdfc9514976ebf2d5fc68c4ghf7" Version="2.0" IssueInstant="2017-08-16T10:30:00.100Z"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://idp.projectathon.hin.ch</saml2:Issuer>
<saml2:Subject>
<saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" NameQualifier="https://idp.projectathon.hin.ch"
SPNameQualifier="https://sp.community.ch/epd">O2S5XNIZEEF7LG7OKYUDGEIO7NBNWMPMST2A4T6NJZPPSH</saml2:NameID>
<!--SubjectConfirmation Fields can be optionally inserted and applied -->
<saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml2:SubjectConfirmationData Address="195.107.160.193" InResponseTo="_O61hf7kujpf680395c068174a4b5362e0a1"
NotOnOrAfter="2017-08-16T10:35:00.100Z" Recipient="https://sp.community.ch/epd/Artifact" />
</saml2:SubjectConfirmation>
</saml2:Subject>
<saml2:Conditions NotBefore="2017-08-16T10:30:00.120Z" NotOnOrAfter="2017-08-16T10:35:00.120Z">
<saml2:AudienceRestriction>
<saml2:Audience>https://sp.community.ch/epd</saml2:Audience>
</saml2:AudienceRestriction>
</saml2:Conditions>
<!--AuthnStatement: The AuthnContext Field is mandatory, all other Fields are optional -->
<saml2:AuthnStatement AuthnInstant="2017-08-16T10:30:00.120Z"
SessionIndex="6c7fb0b96a3450a759e39eda61fc527abd912e1291d55edc8b6b2dcf241092bd">
<saml2:SubjectLocality Address="195.107.160.193" />
<saml2:AuthnContext>
<saml2:AuthnContextClassRef>http://bag.admin.ch/LoA/3</saml2:AuthnContextClassRef>
</saml2:AuthnContext>
</saml2:AuthnStatement>
<!--AuttributeStatement: Attribute Fields can be optionally inserted and applied -->
<saml2:AttributeStatement>
<saml2:Attribute FriendlyName="LastName" Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xsi:type="xs:string">Muster</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute FriendlyName="FirstName" Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xsi:type="xs:string">Fritz</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute FriendlyName="Gender" Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/gender"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xsi:type="xs:token">1</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute FriendlyName="DateOfBirth" Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/dateofbirth"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xsi:type="xs:date">1990-01-01</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute FriendlyName="GLN" NameFormat="urn:oasis:names:tc:ebcore:partyid-type:DataUniversalNumberingSystem:0060">
<saml2:AttributeValue xsi:type="xs:string">7601000080776</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute FriendlyName="OrganizationId" NameFormat="urn:oasis:names:tc:xspa:1.0:subject:organization-id">
<saml2:AttributeValue xsi:type="xs:string">7601001355781</saml2:AttributeValue>
</saml2:Attribute>
</saml2:AttributeStatement>
</saml2:Assertion>
</saml2p:Response>
\ No newline at end of file
......@@ -67,11 +67,9 @@
<groupId>org.apache.axis2</groupId>
<artifactId>addressing</artifactId>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
......
......@@ -44,9 +44,6 @@ are ok.</description>
<groupId>org.openhealthtools.ihe.xds.metadata</groupId>
<artifactId>org.openhealthtools.ihe.xds.metadata.extract.cdar2</artifactId>
</dependency>
<!-- <dependency> <groupId>org.openhealthtools.ihe.xds</groupId> <artifactId>org.openhealthtools.ihe.xds</artifactId> </dependency> <dependency> <groupId>org.openhealthtools.ihe.xds</groupId>
<artifactId>org.openhealthtools.ihe.xds.soap</artifactId> </dependency> <dependency> <groupId>org.openhealthtools.ihe.xds</groupId> <artifactId>org.openhealthtools.ihe.xds.consumer</artifactId>
</dependency> -->
<!-- open health tools ihe utils -->
<dependency>
<groupId>org.openhealthtools.ihe.utils</groupId>
......@@ -67,6 +64,11 @@ are ok.</description>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<!-- even if it is probably not used in the Convenience API, it is required in order to make it available for the .Net Demo by IKVM.net-->
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/log4j/log4j -->
<dependency>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment