Spring OAuth2 Authorization Server集成与拓展项目,包括认证服务搭建、三方登录对接、自定义grant_type方式获取token、前后端分离实现,客户端、资源服务、前端单体项目对接认证服务实现等。
授权码模式
客户端模式
授权码扩展流程PKCE(Proof Key for Code Exchange)
短信登录(自定义grant_type)
设备码授权模式
短信验证码登录
授权码模式使用前后端分离的登录页面(现已支持spring session data redis,前后端不同域名的可以看看之前的nonceId的方案)
联合身份认证(现已集成Github、Gitee登录和微信登录)
二维码扫码登录
Java版本大于等于17
Springboot版本大于等于3.1.0-RC1
IDE安装Lombok插件
authorization-example # 最外层目录
│ README.md # 项目描述文件
│
├─authorization-server # 认证服务器
│
├─authorization-client-example # 客户端集成示例
│
├─resource-server-example # Resource Server集成示例
│
├─vue-login-page-example # 前后端登录中的前端模块
│
├─both-jwt-and-opaque-token-resource-example # 兼容jwt和不透明令牌(opaque token)资源服务示例
│
├─opaque-token-resource-example # 不透明令牌(opaque token)资源服务示例
│
└─gateway-example # 网关集成OAuth2认证服务示例
│
├─gateway-client-example # 网关
│
├─normal-resource-example # webmvc资源服务
│
├─webflux-resource-example # webflux资源服务
│
└─pom.xml # 公共依赖,依赖管理
如果各位觉得项目或文章还不错的,麻烦帮忙点个star,谢谢
也可以通过下方二维码进行赞赏,请作者喝一杯Coffee,非常感谢!

非常感谢以上小伙伴的打赏!感谢
