sign-params ( url request-method consumer-token request-token params -- oauth-params )


Vocabulary
oauth1.private

Inputs
urlan object
request-methodan object
consumer-tokenan object
request-tokenan object
paramsan object


Outputs
oauth-paramsan object


Definition


:: sign-params
( url request-method consumer-token request-token params -- oauth-params )
params sort-keys :> params url request-method params
signature-base-string
:> sbs consumer-token secret>> request-token dup
[ secret>> ] when hmac-key :> key sbs key sha1 hmac-bytes
>base64 >string :> signature params
{ "oauth_signature" signature } prefix
[ "oauth_" head? ] filter-keys ;