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

jwk-set-uri 能否从注册中心获取? #12

Closed
isegon opened this issue Sep 29, 2020 · 2 comments
Closed

jwk-set-uri 能否从注册中心获取? #12

isegon opened this issue Sep 29, 2020 · 2 comments

Comments

@isegon
Copy link

isegon commented Sep 29, 2020

示例代码中 jwk-set-uri 的地址是写死的,对于微服务多实例不友好,
能否改成通过注册中心获取?

@yumindayu
Copy link

貌似jwt-set-uri不支持注册中心负责均衡的方式获取,比如 lb://这种,但是可以通过设置public-key-location将公钥以文件的形式放到本地,避免通过jwt-set-uri单点的故障

@yumindayu
Copy link

看源码public-key-location的优先级高于jwk-set-uri

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