From 47c7181d412aaf6cde44a5229a7a9ed3f2dd97dd Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Fri, 27 Mar 2020 09:46:17 +0000 Subject: [PATCH] Default Auth: Add blank secret to account to prevent nil errors (#1429) * Remove debug auth logs * Default auth, return account secret on Inspect Co-authored-by: Ben Toogood --- auth/default.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auth/default.go b/auth/default.go index 15bb1757..038f22bf 100644 --- a/auth/default.go +++ b/auth/default.go @@ -61,7 +61,10 @@ func (n *noop) Verify(acc *Account, res *Resource) error { // Inspect a token func (n *noop) Inspect(token string) (*Account, error) { - return &Account{ID: uuid.New().String()}, nil + return &Account{ + ID: uuid.New().String(), + Secret: &Token{}, + }, nil } // Refresh an account using a secret