When implementing OAUTH, I have the following problem. When creating the signature base, should encoded parameters be encoded again or should encoded parameters be left out of the encoding when normalizing parameters?
When implementing OAUTH, I have the following problem. When creating the signature base, should
Share
It seems you need to apply double encoding when I read the documentation:
For example, the HTTP request:
contains the following (fully decoded) parameters used in the
signature base sting:
Note that the value of “b5” is “=%3D” and not “==”. Both “c@” and
“c2” have empty values. While the encoding rules specified in this
specification for the purpose of constructing the signature base
string exclude the use of a “+” character (ASCII code 43) to
represent an encoded space character (ASCII code 32), this practice
is widely used in “application/x-www-form-urlencoded” encoded values,
and MUST be properly decoded, as demonstrated by one of the “a3”
parameter instances (the “a3” parameter is used twice in this
request).