# 塔非统一认证平台Taffe-Auth **Repository Path**: skyrocks/taffe-auth ## Basic Information - **Project Name**: 塔非统一认证平台Taffe-Auth - **Description**: 一款开箱即用的统一认证平台系统框架, 遵循OAuth2协议, 快速搭建, 上手容易。 - **Primary Language**: Java - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-05 - **Last Updated**: 2025-02-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 塔非OAuth2统一认证平台TaffeAuth 一款开箱即用的统一认证平台系统框架, 遵循OAuth2协议, 快速搭建, 上手容易。 阿里云专享特惠 [点击进入](https://www.aliyun.com/daily-act/ecs/activity_selection?userCode=bshxhu60) \ 腾讯云特惠专区 [点击进入](https://url.cn/ziIRAgbe) #### 技术选型 * JDK版本: jdk17 * 后端核心: Spring Boot * 权限框架: Spring Security * OAuth框架: Spring-security-oauth2-authorization-server * 模版引擎: Spring-boot-starter-thymeleaf * 持久层框架: spring-boot-starter-jdbc * 数据库链接: Alibaba Druid #### 服务配置地址 * 认证地址:http://localhost:6201/oauth2/authorize * 客户端访问:http://localhost:6201/oauth2/authorize?response_type=code&client_id=taffe&scope=openid&redirect_uri=http://www.sytton.top:8001/sso-verify #### 目录结构 ``` TaffeAuth ├── doc // 项目文档 ├── docker // docker部署环境脚本 ├── sql // 数据库脚本 ├── taffeauth-web // 业务模块 ├──pom.xml // 父pom ``` #### 开发调试 1. 后台启动\ taffeauth-web 为业务项目模块,项目clone后,建议自行创建本地多环境配置文件application-local.yml(application-test.yml包括所有配置项), 在idea开发环境中启动此项目即可,默认端口:6201 2. 数据库初始化\ sql目录中提供初始化脚本,默认主库名taffe_auth #### 项目部署 * 开发环境测试打包部署 1. 执行打包脚本(windows环境后续更新中提供) ``` ./package.sh ``` 2. 执行部署脚本 ``` cd docker && docker-compose up -d ``` 3. 升级,再次执行打包脚本,并重启docker服务即可 * 集成环境或生产环境打包部署\ 执行打包脚本后,把整个docker目录复制到服务器,再进入docker目录执行部署脚本 > 首次部署时删除掉docker中的自动创建目录及文件\ > /docker/mysql/*\ > !/docker/mysql/conf.d\ > /docker/service/*\ > !/docker/service/dockerfile