IdP access to server environment variables
Chad La Joie
lajoie at itumi.biz
Fri Sep 30 11:11:01 BST 2011
That means there is no attribute available called COSIGN_FACTOR.
On Thu, Sep 29, 2011 at 22:24, Liam Hoekenga <liamr at umich.edu> wrote:
> 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
> --
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
>
--
Chad La Joie
www.itumi.biz
trusted identities, delivered
More information about the users
mailing list