/springboot-oauth

SpringBoot3,OAuth2,SpringSecurity6

Primary LanguageJavaMIT LicenseMIT

Spring Boot3 And Oauth2

协议 License

那必须是:MIT
It has to be: MIT

介绍

更新了SpringBoot3和SpringSecurity6,原有的使用方式发生了不小的变化,所以从新写个Demo,一是我要自己用在后面的SpringCloud项目中。二是很多SpringCloud团队因为OAuth上手难度太大所以放弃使用OAuth,这里也为大家提供一个拿来即用的一个DEMO。

Introduce

SpringBoot3 and SpringSecurity6 have been updated, and the original usage has changed a lot, so I wrote a new Demo. First, I want to use it in the subsequent SpringCloud project. Second, many SpringCloud teams give up using OAuth because it is too difficult to get started with OAuth. Here is a ready-to-use DEMO for everyone.

目录 Directory

oauth-server: OAuth2 Server
resource-server: Resource Server
postman: Test postman

特性

1:JWT作为Token。
2:示例中包含client_credentials和password模式。
3:支持验证用户角色。

Features

1: JWT as a token.
2: Examples include client_credentials and password modes.
3: Supports verification of user roles.