<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Testo fumetto Carattere";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TestofumettoCarattere
        {mso-style-name:"Testo fumetto Carattere";
        mso-style-priority:99;
        mso-style-link:"Testo fumetto";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hallo everyone,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’ve some applications (with apache https server as reverse Proxy, with only one Shibboleth SP) that need different sets of attributes.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I read that can be used, in this case, the AttributeConsumingService configuration parameter.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Suppose that I’ve 2 application: App1 and App2, and that App1 needs Attribute1 and App2 needs Attribute2.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In the http server (apache) configuration, I’ve something like:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"><Location /App1><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"> AuthType shibboleth<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"> ShibRequestSetting requireSession 1<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"> require valid-user<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"></Location><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"><Location /App2><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"> AuthType shibboleth<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"> ShibRequestSetting requireSession 1<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"> require valid-user<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"></Location><o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In the shibboleth configuration file (shibboleth2.xml) there will be something like:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"><Handler type="MetadataGenerator" Location="/Metadata" signing="false"><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:70.8pt"><i><span lang="EN-US"><md:AttributeConsumingService index="1" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:106.2pt"><i><span lang="EN-US"><md:ServiceName xml:lang="it">Service 1</md:ServiceName>
<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:106.2pt"><i><span lang="EN-US"><md:RequestedAttribute FriendlyName="Attribute1" Name="Attr1" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"></md:RequestedAttribute><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:70.8pt"><i><span lang="EN-US"></md:AttributeConsumingService><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:70.8pt"><i><span lang="EN-US"><md:AttributeConsumingService index="2" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:106.2pt"><i><span lang="EN-US"><md:ServiceName xml:lang="it">Service 2</md:ServiceName>
<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:106.2pt"><i><span lang="EN-US"><md:RequestedAttribute FriendlyName="Attribute2" Name="Attr2" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"></md:RequestedAttribute><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:70.8pt"><i><span lang="EN-US"></md:AttributeConsumingService><o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"></Handler><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US">How I can specify that /App1 is related to Service with index “1” and that /App2 is related to service with index “2”?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">That is, how Location parameters in apache configuration relate with md:AttributeConsumingService index parameters of shibboleth2.xml?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there some kind of verification of attribute presence at the SP side when the user try to access /App1 or /App2?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Paolo Parlato.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>