mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +03:00
fixed github auth
This commit is contained in:
parent
aae12cb0ab
commit
3efebb02dc
@ -13,13 +13,13 @@
|
||||
{arg/$@($~ {dom/path $~})}
|
||||
$~
|
||||
==
|
||||
^- (sole-result {$write-sec-atom p/host q/@})
|
||||
^- (sole-result {$write-sec-atom p/host:eyre q/@})
|
||||
=- ?~ arg -
|
||||
(fun.q.q [%& dom.arg])
|
||||
%+ sole-lo
|
||||
[%& %oauth-hostname "api hostname: https://"]
|
||||
%+ sole-go thos:urlp
|
||||
|= hot/host
|
||||
%+ sole-go thos:de-purl:html
|
||||
|= hot/host:eyre
|
||||
?: ?=($| -.hot)
|
||||
~|(%ips-unsupported !!)
|
||||
%+ sole-lo
|
||||
@ -31,4 +31,4 @@
|
||||
%+ sole-go (boss 256 (star prn))
|
||||
|= pas/@t
|
||||
%+ sole-so %write-sec-atom :: XX typed pair
|
||||
[hot (crip (sifo (rap 3 usr ':' pas ~)))]
|
||||
[hot (crip (en-base64:mimes:html (rap 3 usr ':' pas ~)))]
|
||||
|
@ -22,7 +22,7 @@
|
||||
::
|
||||
++ add-auth-header
|
||||
|= a/hiss ^- hiss
|
||||
~& auth+(earn p.a)
|
||||
~& auth+(en-purl:html p.a)
|
||||
%_(a q.q (~(add ja q.q.a) %authorization header:auth))
|
||||
::
|
||||
++ standard
|
||||
|
@ -12,7 +12,7 @@
|
||||
$% {$request-token oauth-token/@t token-secret/@t} :: intermediate
|
||||
{$access-token oauth-token/@t token-secret/@t} :: full
|
||||
==
|
||||
++ quay-enc (list tape):quay :: partially rendered query string
|
||||
++ quay-enc (list tape) :: partially rendered query string
|
||||
--
|
||||
::
|
||||
::::
|
||||
|
@ -4,7 +4,7 @@
|
||||
::
|
||||
/+ basic-auth
|
||||
::
|
||||
|_ {bal/(bale keys:basic-auth) $~}
|
||||
|_ {bal/(bale:eyre keys:basic-auth) $~}
|
||||
++ aut ~(standard basic-auth bal ~)
|
||||
++ filter-request out-adding-header:aut
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user