Internet2 / Shibboleth-Multi-Context-Broker

Shibboleth Multi-context Broker
4 stars 7 forks source link

$UILogo displays an openSAML reference instead of the URL #22

Closed BradGunnerSGT closed 9 years ago

BradGunnerSGT commented 9 years ago

Tested on 1.1.3, 1.1.4, and 1.2.3.

Using the $UILogo variable in the jaaslogin.vm template causes the following output in the generated HTML:

<img src="org.opensaml.samlext.saml2mdui.impl.LogoImpl@1d0a2dab" />

The jaaslogin.vm template looks like this:

<div class="column zero">
     #if ($UILogo)
       <img src="$UILogo" />
     #end

     <p><strong>
       Login to
       #if ($UIName)
         $UIName
       #else
         $UIEntityID
       #end
       </strong>
     </p>

     #if ($UIDescription)
     <p> $UIDescription </p>
     #end

     #if ($UIPrivacyURL)
       <p><em><a href="$UIPrivacyURL" target="_blank">Privacy Notice</a></em></p>
     #end
     #if ($UIInfoURL)
       <p><em><a href="$UIInfoURL" target="_blank">More Information</a></em></p>
     #end

     <br/>
   </div>
langedb commented 9 years ago

Hello,

Yes, $UILogo is an object with multiple properties. Try this:

$UILogo.getUrl()
$UILogo.getWidth()
$UILogo.getHeight()

That should allow you to setup your img tag.

BradGunnerSGT commented 9 years ago

Thanks, I didn't see that in the documentation or in the example Velocity templates.