# springBoot集成Spring security oauth2 **Repository Path**: muua0907/SpringSecurityOauth2 ## Basic Information - **Project Name**: springBoot集成Spring security oauth2 - **Description**: springBoot集成Spring security oauth2,该项目作为基础demo,实现功能:code授权,client授权,password授权 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2018-07-02 - **Last Updated**: 2022-06-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springBoot集成Spring security oauth2 #### 项目介绍 springBoot集成Spring security oauth2,该项目作为基础demo,实现功能:code授权,client授权,password授权 该项目作为一个完整的体系DEMO,是各位程序员小伙伴,尽快集成认证和授权,代码有问题,请指正。 #### 软件架构 软件架构说明 ![项目代码结构](https://gitee.com/uploads/images/2018/0702/095107_bf6100e5_956930.png "屏幕截图.png") #### 使用说明 【密码授权模式-client】 密码模式需要参数:username,password,grant_type,client_id,client_secret http://localhost:8080/oauth/token ?username=demoUser1 &password=123456 &grant_type=password &client_id=demoApp &client_secret=demoAppSecret 【客户端授权模式-password】 客户端模式需要参数:grant_type,client_id,client_secret http://localhost:8080/oauth/token ?grant_type=client_credentials &client_id=demoApp &client_secret=demoAppSecret 【授权码模式-code】 获取code http://localhost:8080/oauth/authorize ?response_type=code &client_id=demoApp &redirect_uri=http://baidu.com 通过code换token http://localhost:8080/oauth/token ?grant_type=authorization_code &code=Filepd &client_id=demoApp &client_secret=demoAppSecret &redirect_uri=http://baidu.com