External SSO unable to get signature match

Whilst there are some differences in the preparation of the payload for the HMAC function this code fails with the same issue that the signatures don’t match.