mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 19:22:22 +03:00
34 lines
696 B
Plaintext
34 lines
696 B
Plaintext
|
::
|
||
|
:::: /hoon/init-auth-basic/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
|
||
|
[%& %auth-user "username: "]
|
||
|
%+ sole-go (boss 256 (star ;~(less col prn)))
|
||
|
|= usr/@t
|
||
|
%+ sole-lo
|
||
|
[%| %auth-passwd "password: "]
|
||
|
%+ sole-go (boss 256 (star prn))
|
||
|
|= pas/@t
|
||
|
%+ sole-so %write-sec-atom :: XX typed pair
|
||
|
[hot (crip (sifo (rap 3 usr ':' pas ~)))]
|