<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&#8217;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>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Suppose that I&#8217;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>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In the http server (apache) configuration, I&#8217;ve something like:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&lt;Location /App1&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&nbsp; AuthType shibboleth<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&nbsp; ShibRequestSetting requireSession 1<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&nbsp; require valid-user<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&lt;/Location&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US"><o:p>&nbsp;</o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&lt;Location /App2&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&nbsp; AuthType shibboleth<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&nbsp; ShibRequestSetting requireSession 1<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&nbsp; require valid-user<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&lt;/Location&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</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>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&lt;Handler type=&quot;MetadataGenerator&quot; Location=&quot;/Metadata&quot; signing=&quot;false&quot;&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:70.8pt"><i><span lang="EN-US">&lt;md:AttributeConsumingService index=&quot;1&quot; xmlns:md=&quot;urn:oasis:names:tc:SAML:2.0:metadata&quot;&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:106.2pt"><i><span lang="EN-US">&lt;md:ServiceName xml:lang=&quot;it&quot;&gt;Service 1&lt;/md:ServiceName&gt;
<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:106.2pt"><i><span lang="EN-US">&lt;md:RequestedAttribute FriendlyName=&quot;Attribute1&quot; Name=&quot;Attr1&quot; NameFormat=&quot;urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified&quot;&gt;&lt;/md:RequestedAttribute&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:70.8pt"><i><span lang="EN-US">&lt;/md:AttributeConsumingService&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:70.8pt"><i><span lang="EN-US">&lt;md:AttributeConsumingService index=&quot;2&quot; xmlns:md=&quot;urn:oasis:names:tc:SAML:2.0:metadata&quot;&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:106.2pt"><i><span lang="EN-US">&lt;md:ServiceName xml:lang=&quot;it&quot;&gt;Service 2&lt;/md:ServiceName&gt;
<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:106.2pt"><i><span lang="EN-US">&lt;md:RequestedAttribute FriendlyName=&quot;Attribute2&quot; Name=&quot;Attr2&quot; NameFormat=&quot;urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified&quot;&gt;&lt;/md:RequestedAttribute&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:70.8pt"><i><span lang="EN-US">&lt;/md:AttributeConsumingService&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-left:35.4pt"><i><span lang="EN-US">&lt;/Handler&gt;<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p>&nbsp;</o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US">How I can specify that /App1 is related to Service with index &#8220;1&#8221; and that /App2 is related to service with index &#8220;2&#8221;?
<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>&nbsp;</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>&nbsp;</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>&nbsp;</o:p></p>
</div>
</body>
</html>