# OAuth2_server **Repository Path**: jeesub/oauth2_server ## Basic Information - **Project Name**: OAuth2_server - **Description**: 简要实现基于OAuth2的认证服务器与资源服务器,并实现其中的各种授权模式 - **Primary Language**: Java - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-06-04 - **Last Updated**: 2021-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OAuth2_server #### 介绍 简要实现基于OAuth2的认证服务器与资源服务器,并实现其中的各种授权模式 #### 软件架构 1. 认证服务器 2. 资源服务器 #### 安装教程 1. 下载OAuth2_sql中的sql文件,并在本地创建一个数据库并执行该sql文件,用于OAuth的用户及token存储 2. git程序并运行即可 #### 使用说明 1. 运行认证服务器与资源服务器,其中认证服务器端口为9000,资源服务器端口为8080 2. 资源服务器的Controller请求会自动跳转到认证服务器寻求权限 3. 使用凭证去请求token,url例子如下: http://localhost:9000/oauth/token?client_id=client&client_secret=secret&grant_type=password&username=user&password=123456