aboutsummaryrefslogtreecommitdiffstats
path: root/syz-hub
diff options
context:
space:
mode:
authorGreg Steuck <gnezdo@google.com>2021-07-28 15:34:03 -0700
committerDmitry Vyukov <dvyukov@google.com>2021-07-30 18:21:17 +0200
commit6c236867ce33c0c16b102e02a08226d7eb9b2046 (patch)
treebe81602e5bbe634e223bdc2bfc97049dd7f8a57e /syz-hub
parent75047cf943db20755af0bf9ce3af5502b4040b70 (diff)
syz-manager: support oauth when calling syz-hub
Permit empty hub_key to indicate oauth.
Diffstat (limited to 'syz-hub')
-rw-r--r--syz-hub/hub.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/syz-hub/hub.go b/syz-hub/hub.go
index 195ab74d7..187d4a1eb 100644
--- a/syz-hub/hub.go
+++ b/syz-hub/hub.go
@@ -135,6 +135,8 @@ func (hub *Hub) verifyKey(key, expectedKey string) error {
if subj != expectedKey {
return fmt.Errorf("bad token")
}
+ // Success due to correct token.
+ return nil
}
if key != expectedKey {
return fmt.Errorf("bad password")