OpenSAML Velocity templates for POST etc. responses

Michael A Grady mgrady at unicon.net
Tue Feb 26 10:58:45 EST 2013


On Feb 26, 2013, at 8:58 AM, Cantor, Scott wrote:

> On 2/26/13 12:34 AM, "Michael A Grady" <mgrady at unicon.net> wrote:
> 
>> And you would be ok with changes to:
>> 
>> opensaml/saml2/binding/encoding/HTTPPostEncoder.java
>> opensaml/saml2/binding/encoding/HTTPArtifactEncoder.java
>> opensaml/saml1/binding/encoding/HTTPPostEncoder.java
>> 
>> to add the binding property ( getBindingURI() ) into the Velocity context?
> 
> Not only those, but yes. I just hadn't gotten around to it.
> 
> I also think we need two stubbed imports into the templates, one for
> <head> and one for <body> content.

 By "imports" into the templates, you are referring to adding either an #include and/or a #parse into the base template itself, correct?

The "<head> import" is what I need, but I'd assume I'd need a #parse for that,  if I want to reference a variable in the context (e.g. $bindingType) in the "imported template lines".

Where in the current <body> would you want to import content? (I guess it doesn't really matter, since this isn't a page folks normally "read".)


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



More information about the dev mailing list