util/wrapper: fix 401 error when requesting the default namespace (#1741)

This commit is contained in:
ben-toogood 2020-06-25 10:19:03 +01:00 committed by GitHub
parent fcd307d902
commit 687a5e2e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,7 @@ func AuthHandler(fn func() auth.Auth) server.HandlerWrapper {
// Check the issuer matches the services namespace. TODO: Stop allowing go.micro to access
// any namespace and instead check for the server issuer.
if account != nil && account.Issuer != ns && account.Issuer != "go.micro" {
if account != nil && account.Issuer != ns && account.Issuer != "micro" {
return errors.Forbidden(req.Service(), "Account was not issued by %v", ns)
}