diff options
| author | Greg Steuck <gnezdo@google.com> | 2021-07-28 12:43:45 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-07-30 18:21:17 +0200 |
| commit | 7fa384c47c7a97db7f667797bfc8e1ea78167f39 (patch) | |
| tree | 9fd778bedbdd2d8fce9fd380a729047a6e36378c /pkg/auth/auth.go | |
| parent | a31eceb86df9acc2a471945de8e17fd53091f149 (diff) | |
pkg/auth: move jwt to auth to be shared by syz-hub clients
Diffstat (limited to 'pkg/auth/auth.go')
| -rw-r--r-- | pkg/auth/auth.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index bd542bc32..c662218ea 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -35,8 +35,6 @@ import ( "strconv" "strings" "time" - - "github.com/google/syzkaller/dashboard/dashapi" ) const ( @@ -117,7 +115,7 @@ func (auth *Endpoint) DetermineAuthSubj(now time.Time, authHeader []string) (str if err != nil { return "", err } - if claims.Audience != dashapi.DashboardAudience { + if claims.Audience != DashboardAudience { err := fmt.Errorf("unexpected audience %v %v", claims.Audience, claims) return "", err } |
