mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 19:46:50 +03:00
34 lines
675 B
Plaintext
34 lines
675 B
Plaintext
|
::
|
||
|
:::: /hoon/init-oauth1/hood/gen
|
||
|
::
|
||
|
/? 314
|
||
|
/- sole
|
||
|
::
|
||
|
::::
|
||
|
!:
|
||
|
[sole .]
|
||
|
:- %ask
|
||
|
|= $: {now/@da eny/@uvI bec/beak}
|
||
|
{arg/$@($~ {dom/path $~})}
|
||
|
$~
|
||
|
==
|
||
|
^- (sole-result {$write-sec-atom p/host q/@})
|
||
|
=- ?~ arg -
|
||
|
(fun.q.q [%& dom.arg])
|
||
|
%+ sole-lo
|
||
|
[%& %oauth-hostname "api hostname: https://"]
|
||
|
%+ sole-go thos:urlp
|
||
|
|= hot/host
|
||
|
?: ?=($| -.hot)
|
||
|
~|(%ips-unsupported !!)
|
||
|
%+ sole-lo
|
||
|
[%& %oauth-client "consumer key: "]
|
||
|
%+ sole-go (boss 256 (star prn))
|
||
|
|= key/@t
|
||
|
%+ sole-lo
|
||
|
[%& %oauth-secret "consumer secret: "]
|
||
|
%+ sole-go (boss 256 (star prn))
|
||
|
|= sec/@t
|
||
|
%+ sole-so %write-sec-atom :: XX typed pair
|
||
|
[hot (role key sec ~)]
|