https://apereo.github.io/cas/5.2.x/integration/Attribute-Release-Policies.html#inline-groovy-attributes

We are using 5.1.4 in production and 5.2.7 in test.  Noticed an issue in 
5.2.7 with inline groovy attributes.

"uid" : "groovy { return attributes['uid'] + ' is great' }"

For example, this returns "piper is great" for an attribute value in 5.1.4 
but returns multi-value "piper" and " is great" in 5.2.7.  

< --- 5.1.4 --- >
<saml2:Attribute FriendlyName="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" Name=
"urn:oid:1.3.6.1.4.1.5923.1.1.1.6"> <saml2:AttributeValue xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="xsd:string">[email protected] 
</saml2:AttributeValue> </saml2:Attribute>

< ---- 5.2.7 ---- >
<saml2:Attribute FriendlyName="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" Name=
"urn:oid:1.3.6.1.4.1.5923.1.1.1.6" NameFormat=
"urn:oasis:names:tc:SAML:2.0:attrname-format:uri"> <saml2:AttributeValue>
xavtrix</saml2:AttributeValue> <saml2:AttributeValue>@domain.edu</
saml2:AttributeValue> </saml2:Attribute>

Anyone else using inline groovy attributes come across this during their 
CAS updates?  Been trying different things for a fix so I can roll 5.2.7 
into production. Thanks,  

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/e98546d3-0143-4bd4-b8d4-535d46b86c48%40apereo.org.

Reply via email to