Skip to content

Commit

Permalink
util/wrapper: fix 401 error when requesting the default namespace (mi…
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-toogood authored Jun 25, 2020
1 parent fcd307d commit 687a5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/wrapper/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 687a5e2

Please sign in to comment.