# OAuth2-Defender **Repository Path**: lansy/OAuth2-Defender ## Basic Information - **Project Name**: OAuth2-Defender - **Description**: 采用Spring Security OAuth2安全框架并基于数据库实现安全认证和授权。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-06-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #OAuth2-Defender ##主要技术 Maven
Spring Boot
Spring Security
Spring Security OAuth2.0
MySQL
##修改数据库配置 修改defender-oauth2-authorization\src\main\resources\application.properties中MySQL的主机配置
修改defender-oauth2-resource\src\main\resources\application.properties中MySQL的主机配置
##初始化数据库 在MySQL客户端执行SQL脚本:
defender-oauth2-authorization\doc\schema.sql
defender-oauth2-authorization\doc\data.sql
##启动服务器 ###启动认证服务器 运行defender-oauth2-authorization模块下AuthorizationApplication类的main方法。
###启动资源服务器 运行defender-oauth2-resource模块下ResourceApplication类的main方法。
###启动客户端服务器 运行defender-oauth2-client模块下ClientApplication类的main方法。
##访问客户端主页面 在浏览器访问:localhost:8882/defender,测试5中不同授权模式。
##后期工作 支持缓存
添加Spring Security防御功能