This sample should be used for migrating a Spring Security OAuth 2.x application to Spring Security 5.2.
This is the Spring Security OAuth 2.4 sample and the corresponding Spring Security 5.2 sample is here.
See the OAuth 2.0 Migration Guide for further details.
Build the sample → ./mvnw clean package
Run Authorization Server → ./mvnw -f auth-server spring-boot:run
IMPORTANT: Make sure to modify your /etc/hosts
file to avoid problems with session cookie overwrites between client-app
and auth-server
. Simply add the entry 127.0.0.1 auth-server
Run Resource Server → ./mvnw -f resource-server spring-boot:run
Run Client App → ./mvnw -f client-app spring-boot:run
Go to http://localhost:8080
and login using user1/password
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。