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 <ben@micro.mu>
This commit is contained in:
ben-toogood 2020-03-27 09:46:17 +00:00 committed by GitHub
parent b38da6ced0
commit 47c7181d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,10 @@ func (n *noop) Verify(acc *Account, res *Resource) error {
// Inspect a token // Inspect a token
func (n *noop) Inspect(token string) (*Account, error) { 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 // Refresh an account using a secret