We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hello, Describe the bug
curl -X 'GET' \ 'https://localhost:8082/api/v1/greeter?name=1' \ -H 'accept: application/json'
{ "error": { "code": 401, "status": "Unauthorized", "message": "missing authorization, provide one of bellow auth header:[X-API-Key]", "details": [ { "code": 16, "status": "Unauthenticated", "message": "[from-grpc] missing authorization, provide one of bellow auth header:[X-API-Key]" } ] } }
rk-boot/v2 v2.1.2 rk-grpc/v2 v2.0.2 rk-entry/v2 v2.1.7
谢谢。
The text was updated successfully, but these errors were encountered:
@careyyoung Hi grpc.sw.header 这个选项是当 Swagger UI 界面返回时,带的 Header,并不是用来在发送请求时自带的 Header。如果想要在 Swagger UI 界面上开启 X-API-Key, Basic Auth,JWT 的验证
请参考例子:https://github.com/rookie-ninja/rk-demo/tree/master/grpc/v2/swagger-auth
Sorry, something went wrong.
感谢回复和例子,辛苦了。 之前看的文档 https://docs.rkdev.info/cn/docs/rk-boot/user-guide/grpc/basic/swagger-ui/ ,提到的:
No branches or pull requests
hello,
Describe the bug
rk-boot/v2 v2.1.2
rk-grpc/v2 v2.0.2
rk-entry/v2 v2.1.7
谢谢。
The text was updated successfully, but these errors were encountered: