IdP access to server environment variables

Liam Hoekenga liamr at umich.edu
Fri Sep 30 03:24:10 BST 2011


I apologize - I'm not really a java guy.

> It's actually as HttpServletRequest attributes, so something like
> httpServletRequest.getAttribute(name), which returns an Object.

logger.debug("test = "  
+requestContext.getInboundMessageTransport().getAttribute('COSIGN_FACTOR'));

does seem to return an object...

22:09:29.218 - DEBUG  
[edu.internet2.middleware.shibboleth.resolver.Script.umichCosignFactor:-2] -  
test = ${COSIGN_FACTOR}

I can't seem to cast it into a string.

(String)requestContext.getInboundMessageTransport().getAttribute('COSIGN_FACTOR')

returns

22:12:39.720 - ERROR  
[edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.ScriptedAttributeDefinition:135] - ScriptletAttributeDefinition umichCosignFactor unable to execute  
script
javax.script.ScriptException:  
sun.org.mozilla.javascript.internal.EvaluatorException: missing ;  
before statement (<Unknown source>#12) in <Unknown source> at line  
number 12

.toString() doesn't seem to do anything. (I still get ${COSIGN_FACTOR}  
if I try log it).

What am I doing wrong?

Liam


More information about the users mailing list