Spring Security OAuth with JWK Example

社会主义新天地 提交于 2021-02-18 17:25:27

问题


Does someone have a Spring Security OAuth 2 resource server (SP) example with JWT and asymmetric keys which is using JWK with a JWKS endpoint?

Thanks a lot. Essey


回答1:


Spring Security OAuth 2 resource server can be configured to use JWK. If you are using Spring Boot, you only need to use the property security.oauth2.resource.jwk.key-set-uri to configure the JWKS endpoint.

That is the only special difference with the plenty of samples you might find online.



来源:https://stackoverflow.com/questions/44624861/spring-security-oauth-with-jwk-example

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!