Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

micro api Account not issued #71

Open
yumindayu opened this issue Jun 22, 2020 · 3 comments
Open

micro api Account not issued #71

yumindayu opened this issue Jun 22, 2020 · 3 comments

Comments

@yumindayu
Copy link

就是文档中part1 的内容

一个web服务 监听8088端口 直接访问8088可以访问

micro api 启动后 访问8080 可以返回 version

输入文档中的命令 micro --registry=etcd --api_namespace=mu.micro.book.web api --handler=web

直接返回错误 Account not issued by mu.micro.book.web

@LiQingMuBai
Copy link

2020-06-23 23:04:09 file=grpc/grpc.go:697 level=info service=api Registry [etcd] Registering node: go.micro.api-1b3ac0ff-dba6-416a-8210-bf30cdaa4cfe 61.174.129.26 - - [23/Jun/2020:23:05:27 +0800] "POST /user/login HTTP/1.1" 403 40 "" "PostmanRuntime/7.6.0"

Response:
Account not issued by mu.micro.book.web

@yumindayu
Copy link
Author

yumindayu commented Jun 24, 2020

2020-06-23 23:04:09 file=grpc/grpc.go:697 level=info service=api Registry [etcd] Registering node: go.micro.api-1b3ac0ff-dba6-416a-8210-bf30cdaa4cfe 61.174.129.26 - - [23/Jun/2020:23:05:27 +0800] "POST /user/login HTTP/1.1" 403 40 "" "PostmanRuntime/7.6.0"

Response:
Account not issued by mu.micro.book.web

可能是目前这个过度版本的问题?

@zhongyuanjia
Copy link

试下加上auth_namespace

micro --registry=etcd --auth_namespace=mu.micro.book.web --api_namespace=mu.micro.book.web api --handler=web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants