I periodically get this when testing and from what I can tell the input values match but the signatures don't
Douglas
Printable View
I periodically get this when testing and from what I can tell the input values match but the signatures don't
Douglas
I figured it out.
Turns out that the HMAC signature can have spaces which means that you need to URL encode the signature prior to adding it to the header.
Also the token secret comes back encoded so that needs to be decoded prior to signing.
There was a fix last week for spaces in signatures. Can you try a snapshot and verify that it works in your use case (hopefully out of the box)?
3.19 is probably old code from the codehaus days. Please update to the latest from github/maven (org.springframework.security.oauth:spring-security-oauth).