OpenSAML Velocity templates for POST etc. responses

Michael A Grady mgrady at unicon.net
Tue Feb 19 01:11:48 EST 2013


On Feb 19, 2013, at 12:02 AM, Michael A Grady wrote:

Forgot to finish the one thought below.

> 
> On Feb 13, 2013, at 11:37 PM, Cantor, Scott wrote:
> 
>> 
>>> So you'd need to have each template include a different stubbed file,
>>> and one would still need 4/5 files. Unless you wanted to add a Velocity
>>> "set" in also. So you'd need to add something like
>>> 
>>> <head>
>>> #set( $samlResponseType = "saml2-post-binding" )
>>> #parse GAjavascript.txt
>>> </head>
>>> 
>>> in each template, varying the samlResponseType string in each.
>> 
>> There might be something we could inject into the context that could be
>> picked up without having to do it manually in the templates. I'd have to
>> see what the code's doing when it creates the context and what it has
>> access to.
> 
> Looking at the code, it seems if one simply injected the "templateId" into the context (actually, the velocityTemplateId), then one would have the necessary information to pass to GA. (It would be a bit longer, "/templates/saml2-post-binding.vm", but it would work. And/or one could then do string manipulation in the template to 

remove the "extraneous bits".

> 
> 
> --
> Michael A. Grady
> Senior IAM Consultant, Unicon, Inc.
> 
> --
> To unsubscribe from this list send an email to dev-unsubscribe at shibboleth.net


--
Michael A. Grady
Senior IAM Consultant, Unicon, Inc.



More information about the dev mailing list