Comments (2)
@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
from rk-boot.
感谢回复和例子,辛苦了。
之前看的文档 https://docs.rkdev.info/cn/docs/rk-boot/user-guide/grpc/basic/swagger-ui/ ,提到的:
grpc.sw.headers | 每次 Swagger 界面请求,都会带着这些头部。格式: [key:value] | []string | [] |
---|
from rk-boot.
Related Issues (20)
- New API error format requested
- 一个进程启动grpc和gin时的swagger页面访问问题 HOT 3
- connect mongodb cluster error, can you provide a case? Thank you. HOT 3
- how can I find the jwt endpoints? HOT 3
- HTTP Access logs HOT 1
- 如何自訂支援如asynq gRPC: 实现分布式日志跟踪? HOT 30
- Cannot override boot config values using environment variables HOT 3
- Is there anyway to configure the default event log at stdout when starting app? HOT 5
- 微信群二维码过期了 HOT 2
- Swagger/Docs Panic: no / before catch-all in path '\/sw\*any' HOT 7
- NewBoot should find boot.yaml in default project dir when called via Go Unit Test HOT 2
- Any plan to support orm `xorm`? HOT 1
- Unable to use Postgres DB in gRPC gateway endpoint HOT 1
- support rk-boot reload config on sighup or watch config HOT 1
- Does rk-boot provides integration with cobra CLI creating tool HOT 1
- Wechat group QRCode is expired
- http://localhost:8080/sw/ render failed HOT 1
- Any plan to support entgo HOT 1
- Enable Grafana Loki writer syncer in rk-boot family which will send logs to Loki directly. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rk-boot.