diff --git a/sec/com/twitter.hoon b/sec/com/twitter.hoon new file mode 100644 index 000000000..426013ea1 --- /dev/null +++ b/sec/com/twitter.hoon @@ -0,0 +1,23 @@ +:: Test url +https://slack.com/api/auth.test +:: +:::: /hoon/slack/com/sec + :: +/+ oauth1 +:: +:::: + :: +::=+ ^= aut +:: %+ oauth2 +:: 'https://slack.com/oauth/authorize' +:: 'https://slack.com/api/oauth.access' +|_ {(bale @t:keys:oauth1) tok/{@t @t}} +::++ aut ~(. ^aut +<- /client/admin) +::++ out (out-quay:aut 'token'^tok) +:: ++ in in-code:aut +:: ++ bak (bak-save-access:aut . |=(tok/token:aut +>(tok tok))) +++ out + |= a/hiss ^- {$send hiss} + ~| %authorization + ~& twit-auth+(~(got by q.q.a) %authorization) + [%send a] +--