גיבוב סוד + מטען עבור SSO

What is that %0A doing there just before &sig? That’s a URLencoded linefeed… that is why there is a blank line in your debug output after you print the payloadURL, it is still tacked on at the end.