URL encoding the entity ID in Velocity

Cantor, Scott cantor.2 at osu.edu
Wed Feb 3 13:31:43 EST 2016


On 2/3/16, 1:19 PM, "users on behalf of Wessel, Keith" <users-bounces at shibboleth.net on behalf of kwessel at illinois.edu> wrote:



>We could just make this a static page, but we'd ideally like to pass the entityID of the SP back to the discovery service. To do this, I'm thinking we'll ned to URL encode the entityID. Is there an easy way to do this in Velocity witouth changing the IDP source to pass another variable into Velocity to define a java.net.URLEncoder object?

See global.xml, shibboleth.CustomViewContext, you're free to expose any objects you want, they'll be passed into all views. Added in 3.2.

>Or is there another way to encode this?

Many I'm sure...

>Or can I perhaps just grab the URL-encoded entityID from the request object somehow?

Not anywhere obvious, there's no reason it would be lying around encoded.

-- Scott



More information about the users mailing list