From ab496e59128c24232fbbf9dbd4e2c798f55a71e0 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Thu, 28 Mar 2019 11:25:40 -0700 Subject: [PATCH] removes gcp security driver (no longer used by :dns) --- sec/com/googleapis.hoon | 57 ----------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 sec/com/googleapis.hoon diff --git a/sec/com/googleapis.hoon b/sec/com/googleapis.hoon deleted file mode 100644 index b18edcc38c..0000000000 --- a/sec/com/googleapis.hoon +++ /dev/null @@ -1,57 +0,0 @@ -:: Test url +https://www.googleapis.com/oauth2/v1/userinfo -:: -:::: /hoon/googleapis/com/sec - :: -/+ oauth2, interpolate, hep-to-cab -:: -:::: - :: -|% -++ user-state {ber/token ref/refresh}:oauth2 -++ suffix-email - %+ cook welp - ;~ plug - (star ;~(less vat prn)) - ;~(pose (plus prn) (easy "@gmail.com")) - == -:: -++ auth-usr - |= usr/user:eyre - =+ lon=(fall (slaw %t usr) usr) - %+ add-query:interpolate 'https://accounts.google.com/o/oauth2/v2/auth' - %- quay:hep-to-cab - :~ login-hint+?~(lon '' (crip (rash lon suffix-email))) - access-type+%offline - response-type+%code - prompt+%consent - == -++ scopes - :~ 'https://mail.google.com' - 'https://www.googleapis.com/auth/plus.me' - 'https://www.googleapis.com/auth/userinfo.email' - 'https://www.googleapis.com/auth/ndev.clouddns.readwrite' - 'https://www.googleapis.com/auth/cloud-platform.read-only' - == -:: -++ exchange-url 'https://www.googleapis.com/oauth2/v4/token' --- -:: -:::: - :: -|_ {bal/(bale:eyre keys:oauth2) own/user-state} -:: ++auth is a "standard refreshing oauth2" core, which implements the -:: most common handling of oauth2 semantics. see lib/oauth2 for more details, -:: and examples at the bottom of the file. -++ auth - =+ a=~(standard-refreshing oauth2 bal ber.own) - (a(state-usr &) ..auth ref.own |=(a/user-state ..auth(own a))) -:: -++ filter-request (out-refresh-or-add-header:auth exchange-url scopes dialog-url) -++ dialog-url (auth-usr usr.bal) -:: -++ filter-response res-save-after-refresh:auth -:: -++ receive-auth-query-string (in-code-to-token:auth exchange-url) -++ receive-auth-response bak-save-both-tokens:auth -:: ++ update *user-state ---