<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:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" 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=utf-8"><meta name=Generator content="Microsoft Word 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>Hi,<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>we currently try to configure OIDC on our IDP.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>We have ‘attribute-release’ configured as postAuthenticationFlows for the SAML2.SSO Profile and also idp.consent.allowPerAttribute is true but idp.consent.attribute-release.activationCondition is never configured. We also want to enable it for OIDC.SSO. Unfortunately the consent is never shown.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>When looking at the debug log I find the following line:<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>[…] Flow intercept/attribute-release was not applicable to this request<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>I checked with the code and found that the bean ‘shibboleth.consent.AttributeReleaseFlow’ has an activationCondition [1] that tests against net.shibboleth.idp.saml.profile.config.logic.IncludeAttributeStatementPredicate in this situation.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>This predicate however is not aware of the OIDC profiles and therefore always returns false when called in these profiles.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>The token endpoint on the other hand correctly checks if there is a consent for the attributes about to be released. <o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>Therefore when using the oidc “Authorization Code Flow” the code returned does not return any claims.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>Can you tell me what my problem is or how I might overcome this. I can only think of extending ‘intercept/attribute-release’ with a custom intercept and overriding the activationCondition with something OIDC aware but that seems a little much.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'>[1] https://git.shibboleth.net/view/?p=java-identity-provider.git;a=blob;f=idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/profile-intercept-system.xml#l50<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'>Viele Grüße<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'>Clemens (Bergmann)<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'>-- <o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'>Clemens Bergmann<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'>Gruppe Nutzermanagement und Entwicklung<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'>Technische Universität Darmstadt<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'>Hochschulrechenzentrum, Alexanderstraße 2, 64289 Darmstadt<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'>Tel. +49 6151 16 71184<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt;mso-fareast-language:DE'><a href="http://www.hrz.tu-darmstadt.de/"><font color=black><span style='color:windowtext'>http://www.hrz.tu-darmstadt.de/</span></font></a><o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p></div></body></html>