From 6723d17b228705406fe0516c08460d58da7dfd36 Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Fri, 27 Mar 2020 09:54:29 +0000 Subject: [PATCH] Default auth, return account secret on Inspect (#1430) Co-authored-by: Ben Toogood --- auth/default.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/default.go b/auth/default.go index 038f22bf..300bb41c 100644 --- a/auth/default.go +++ b/auth/default.go @@ -41,6 +41,7 @@ func (n *noop) Generate(id string, opts ...GenerateOption) (*Account, error) { ID: id, Roles: options.Roles, Metadata: options.Metadata, + Secret: &Token{}, }, nil } @@ -62,8 +63,7 @@ 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(), - Secret: &Token{}, + ID: uuid.New().String(), }, nil }