Prefix form_post response parameter keys in Velocity context

Description

When response_mode=form_post is used in authorization/authentication requests, OP will populate Velocity context and uses templates/oidc-form-post.vm for creating the response to be posted. Currently all the response message object parameters are populated to the Velocity context with the same keys so that for instance the parameter code in successful authorization response message is available as ${code}in the Velocity template.

The JARM [1] spec (that we don’t yet implement) uses response parameter for communicating the JWT responses via form. It’s colliding with the variable that we use for HttpServletResponses in all Velocity templates. A straightforward way to avoid this would be to add a prefix to all response object parameters and update the template accordingly.

[1]

Environment

None

Activity

Henri MikkonenJune 12, 2024 at 7:48 AM

Switched into using 'parameter_' -prefix for the response message parameters

Completed

Details

Assignee

Reporter

Components

Fix versions

Created June 12, 2024 at 7:33 AM
Updated June 12, 2024 at 9:01 AM
Resolved June 12, 2024 at 7:48 AM