Hashing Secret + Payload voor SSO

You should look at where the newline is actually coming from and avoid it being added.

Also, the payload should have more name=value pairs than just the nonce?