{"repo":"monkeyk/spring-oauth-server","free":true,"listed":false,"github":"https://github.com/monkeyk/spring-oauth-server","clone":"git clone https://github.com/monkeyk/spring-oauth-server.git","description":"OAuth2.1 & OIDC1.0 & Spring Security","language":"HTML","stars":89,"topics":["spring-oauth-server","spring-security-oauth2","oauth2","oidc","oidc-provider","oidc-server"],"license":"GPL-2.0","category":"auth-billing-email","readme_excerpt":"spring-oauth-server Spring与OAuth2/OIDC的整合完整示例. OIDC1.0 + OAuth2.1 项目用Maven管理 使用的主要技术与版本号 JDK (openjdk 17) Spring Boot(3.1.5) Spring Core(6.0.11) spring-security-oauth2-authorization-server (1.1.1) thymeleaf (3.1.1.RELEASE) 授权协议 GPL-2.0 技术视频 spring-oauth-server开源项目背景 2018-09-16 如何在本地运行spring-oauth-server(传统版本) 2018-09-17 如何在本地运行spring-oauth-server(config版本) 2018-10-08 在线测试环境的使用 2018-10-14 spring-oauth-server v2.0.1更新内容简介 2019-08-05 注意：以上视频主要适用于v2.x版本 http://list.youku.com/albumlist/show/id 51900110.html (持续更新...) 1000 star Gitee奖杯: sos-1000-stars.jpg [2019年] 版本分支介绍 - MySQL版本请访问Branch: master - MongoDB版本请访问Branch: mongodb - Redis版本请访问Branch: config-redis 相关项目 1. OAuth2客户端项目请访问 spring-oauth-client 2. 在线测试访问地址 https://andaily.com/spring-oauth-server (v1.0) 3. Shiro与OLTU整合的OAuth2项目 https://gitee.com/mkk/oauth2-shiro (相比spring-oauth-server, 该项目入门门槛相对较低, 代码更加透明, 理解更容易,可扩展性更强, 且模块化开发) 如何使用? 1. 项目是Maven管理的, 需要本地安装Maven(开发用的maven版本号为3.6.0), 还有MySql(开发用的mysql版本号为5.7.22) 2. 下载 (或clone)项目源码到本地 3. 创建MySQL数据库(默认数据库名oauth2 boot), 并运行相应的SQL脚本(脚本文件位于others/database目录), 运行脚本的顺序: initial db.ddl - oauth.ddl - initial data.ddl 4. 修改application.properties(位于src/main/resources目录)中的数据库连接信息(包括username, password等) 5. 将本地项目导入到IDE(如Intellij IDEA)中, 可直接运行 SpringOauthServerApplication.java 进行访问；或配置Tomcat(或类似的servlet运行服务器), 并启动Tomcat(默认端口为8080); 也可通过maven package命令将项目编译为jar文件(spring-oauth-server.jar), 使用命令 java -jar 启动访问. 若使用 java -jar spring-oauth-server.jar 启动, 建议使用参数 spring.config.location 指定配置文件, 如： jav","default_branch":null,"files":null,"tree":[],"storefront":"/r/monkeyk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/monkeyk/spring-oauth-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}