swedenconnect / opensaml-addons

Extensions to OpenSAML
4 stars 2 forks source link

PostRequestHttpObject encodes RelayState wrong #24

Closed martin-lindstrom closed 2 years ago

martin-lindstrom commented 2 years ago

After copying some code from OpenSAML's HTTPPostEncoder implementation I see that we use HTMLEncoder.encodeForHTMLAttribute to encode the RelayState. This may be correct for the OpenSAML implementation since it supplies data to Velocity, but for us it is wrong. In fact, it is better not to encode the parameters at all.