UpperCAse/LoweCase

Argenis Lopez alopez at fcci-group.com
Thu Jul 23 07:56:26 EDT 2015


Thanks, I'm using it to call a lowercase function but always get the script produce a null value


<resolver:AttributeDefinition xsi:type="ad:Script" xmlns="urn:mace:shibboleth:2.0:resolver:ad"  id="forKronos" sourceAttributeID="mail" dependencyOnly="true">
         <resolver:Dependency ref="mail" />
           <resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:forKronos" />
         <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:2.5.4.4:forKronos" friendlyName="forKronos" />
         <Script><![CDATA[
                var BasicAttribute = Java.type("edu.internet2.middleware.shibboleth.common.attribute.provider.BasicAttribute");
                logger = Java.type("org.slf4j.LoggerFactory").getLogger("net.shibboleth.idp.attribute");
                forKronos = new BasicAttribute("forKronos");
        forKronos.getValues().add(mail.getValues().get(0).toUpperCase());
                logger.info("Values of original mail were: {} ", mail.getValues());
                mail.getValues().clear();
                mail.getValues().add(forKronos.getValues().get(0).toUpperCase());
                logger.info("Values of changed mail were: {} ", mail.getValues());

                ]]></Script>
        </resolver:AttributeDefinition>



Argenis López, MEM
Senior Solution Architect
FCCI Insurance Group
6300 University Parkway
Sarasota, FL 34240
(787) 402-8448 - Cell
(941) 907-7518 - Direct
(800) 226-3224, ext 7518


-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Wednesday, July 22, 2015 11:40 AM
To: Shib Users
Subject: Re: UpperCAse/LoweCase

On 7/22/15, 10:58 AM, "users on behalf of Argenis Lopez" <users-bounces at shibboleth.net on behalf of alopez at fcci-group.com> wrote:



>Is there a way to convert (uppercase/lowercase) an attribute before releasing it to the SP?

Assuming you mean the IdP, I don't believe it's possible other than via a Script attribute definition.

-- Scott

--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net

FCCI Insurance Group
More than a policy. A promise.®
www.fcci-group.com<http://www.fcci-group.com>


FCCI Insurance Group companies: Brierfield Insurance Company, FCCI Advantage Insurance Company, FCCI Commercial Insurance Company, FCCI Insurance Company, Monroe Guaranty Insurance Company, and National Trust Insurance Company.


This communication, along with any documents, files or attachments, is intended only for the use of the addressee and may contain legally privileged and confidential information. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of any information contained in or attached to this communication is strictly prohibited. If you have received this message in error, please notify the sender immediately and destroy the original communication and its attachments without reading, printing or saving in any manner.


More information about the users mailing list