diff options
| author | Greg Steuck <gnezdo@google.com> | 2021-07-28 15:34:03 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-07-30 18:21:17 +0200 |
| commit | 6c236867ce33c0c16b102e02a08226d7eb9b2046 (patch) | |
| tree | be81602e5bbe634e223bdc2bfc97049dd7f8a57e /syz-hub | |
| parent | 75047cf943db20755af0bf9ce3af5502b4040b70 (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.go | 2 |
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") |
