<div dir="ltr">Works as advertised . Thank you!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 25, 2021 at 10:00 PM Wessel, Keith <<a href="mailto:kwessel@illinois.edu">kwessel@illinois.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Correct, placeToIdToken and denyUserInfo are no longer allowed on attribute definitions. Instead, you set the attributes that should be included in the ID token or not allowed in userinfo in the properties in oidc.properties:<br>
<br>
# "Always included" attributes are forced into ID tokens for all response_types<br>
idp.oidc.alwaysIncludedAttributes = myDisplayName,email<br>
# "Denied" attributes are omitted from the UserInfo token<br>
idp.oidc.deniedUserInfoAttributes = some,other,attributes<br>
<br>
By default, the only claims that will be placed in the ID token are the standard OIDC reserved claims, and by default every released claim will be allowed in the userinfo. So, you can get back the placeToIdToken behavior by adding the names of those attributes to the first property above.<br>
<br>
Keith<br>
<br>
From: users <<a href="mailto:users-bounces@shibboleth.net" target="_blank">users-bounces@shibboleth.net</a>> On Behalf Of Mohamed Lrhazi<br>
Sent: Wednesday, August 25, 2021 7:56 PM<br>
To: Shib Users <<a href="mailto:users@shibboleth.net" target="_blank">users@shibboleth.net</a>><br>
Subject: OIDC: placeToIDToken replacement in the latest version?<br>
<br>
Hello,<br>
<br>
I am trying to recreate an old working config in a new installation using the latest shib idp and OIDC plugin.<br>
<br>
How do I add attributes to the response token? In the previous version I think I had to add the attribute to the attribute definition in attribute-resolve.xml. In the new version am getting:<br>
<br>
shib-idp;idp-process.log;dev;nothing;Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'placeToIDToken' is not allowed to appear in element 'AttributeEncoder'.<br>
<br>
<br>
I also see this in the log:<br>
<br>
<br>
- DEBUG [net.shibboleth.idp.plugin.oidc.op.profile.impl.AddAttributesToClaimsSet:388] - Profile Action AddAttributesToClaimsSet: Attribute myDisplayName not targeted for ID Token<br>
- DEBUG [net.shibboleth.idp.plugin.oidc.op.profile.impl.AddAttributesToClaimsSet:388] - Profile Action AddAttributesToClaimsSet: Attribute email not targeted for ID Token<br>
<br>
<br>
Thanks a lot,<br>
Mohamed.<br>
-- <br>
For Consortium Member technical support, see <a href="https://shibboleth.atlassian.net/wiki/x/ZYEpPw" rel="noreferrer" target="_blank">https://shibboleth.atlassian.net/wiki/x/ZYEpPw</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div>