Thursday, May 16, 2024
HomeGolangOauth1 signature_invalid - Getting Assist

Oauth1 signature_invalid – Getting Assist


I’m making an attempt to make use of the etrade api which sadly makes use of oauth1.I’ve spent over a day making an attempt to authorize. I’m wondering if anybody can take a look at my values and see the issue.

parameterString
include_entities=true&
oauth_callback=oob&
oauth_consumer_key=a64408d1348cc0b2b7c3dbac058fd3cc&
oauth_nonce=BpLnfgDsc2WD8F2qNfHK5a84jjJkwzDkh9h2fhfUVuS9jZ8u&
oauth_signature_method=HMAC-SHA1&oauth_timestamp=1659709080&
oauth_token=&oauth_version=1.0&
standing=Hellopercent20Ladiespercent20percent2Bpercent20Gentlemenpercent2Cpercent20apercent20signedpercent20OAuthpercent20requestpercent21

signatureBase
GET&httpspercent3Apercent2Fpercent2Fapisb.etrade.compercent2F
oauthpercent2Frequest_token&
include_entitiespercent3Dtruepercent26
oauth_callbackpercent3Doobpercent26
oauth_consumer_keypercent3Da64408d1348cc0b2b7c3dbac058fd3ccpercent26
oauth_noncepercent3DBpLnfgDsc2WD8F2qNfHK5a84jjJkwzDkh9h2fhfUVuS9jZ8upercent26
oauth_signature_methodpercent3DHMAC-SHA1percent26oauth_timestamppercent3D1659709080percent26
oauth_tokenpercent3Dpercent26
oauth_versionpercent3D1.0percent26
standingpercent3DHellopercent2520Ladiespercent2520percent252Bpercent2520Gentlemenpercent252Cpercent2520apercent2520signedpercent2520
OAuthpercent2520requestpercent2521

signingKey
1550b6791d366b0dd62949cfb4ef7b85fec0d4d2144e14efb915dae00509f639&

signature
qjbsiY0zp1J7SSOR0UoRpbqgTVs=

authHeader
OAuth oauth_callback="oob",
 oauth_consumer_key="a64408d1348cc0b2b7c3dbac058fd3cc", oauth_nonce="BpLnfgDsc2WD8F2qNfHK5a84jjJkwzDkh9h2fhfUVuS9jZ8u", oauth_signature="qjbsiY0zp1J7SSOR0UoRpbqgTVspercent3D",
 oauth_signature_method="HMAC-SHA1", 
 oauth_timestamp="1659709080", 
 oauth_token="", 
 oauth_version="1.0"


response:
Www-Authenticate: OAuth realm=https://etws.etrade.com/,oauth_problem=signature_invalid

I’m not obscuring something as that is only a sandbox authorization.
Carriage returns have been inserted to make these simpler to learn.

BTW, I’m able to get a token utilizing Postman. Though I don’t specify the signature, Postman have to be creating one as a result of it really works. Agh, I turned off the oauth_signature and retried and it failed. Turned it again on and it nonetheless fails. It says:

oauth_acceptable_timestamps=1659719338-1659722938
when I've the timestamp set to: 1659721096

Though my timestamp is in that vary.

This subject was routinely closed 90 days after the final reply. New replies are now not allowed.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments