Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
8aeefde2
Commit
8aeefde2
authored
Jun 19, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整合第三方登录到系统管理
parent
00e6f2a5
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
56 additions
and
121 deletions
+56
-121
README.md
+0
-1
guns-base-third-login/README.md
+0
-4
guns-base-third-login/pom.xml
+0
-40
guns-base-third-login/src/main/java/cn/stylefeng/guns/oauth/config/OAuthLoginConfig.java
+0
-14
guns-base-third-login/src/main/resources/META-INF/spring.factories
+0
-3
guns-sys/pom.xml
+7
-0
guns-sys/src/main/java/cn/stylefeng/guns/sys/core/exception/oauth/OAuthExceptionEnum.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/core/exception/oauth/OAuthLoginException.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/core/shiro/oauth/LoginType.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/core/shiro/oauth/OAuthToken.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/core/shiro/oauth/matcher/WithOAuthTokenMatcher.java
+3
-3
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/controller/OAuthController.java
+6
-7
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/entity/OauthUserInfo.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/factory/OAuthRequestFactory.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/factory/OAuthUserInfoFactory.java
+2
-2
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/mapper/OauthUserInfoMapper.java
+4
-5
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/mapper/mapping/OauthUserInfoMapper.xml
+6
-6
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/model/params/OauthUserInfoParam.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/model/result/OauthUserInfoResult.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/service/LoginService.java
+1
-1
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/service/OauthUserInfoService.java
+4
-4
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/service/impl/DefaultLoginService.java
+8
-8
guns-sys/src/main/java/cn/stylefeng/guns/sys/modular/third/service/impl/OauthUserInfoServiceImpl.java
+6
-6
guns-vip-main/pom.xml
+0
-7
guns-vip-main/src/main/java/cn/stylefeng/guns/config/web/ShiroConfig.java
+1
-1
pom.xml
+0
-1
No files found.
README.md
View file @
8aeefde2
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
| guns-base | guns的基础模块 |
| guns-base | guns的基础模块 |
| guns-base-email | 邮件发送模块 |
| guns-base-email | 邮件发送模块 |
| guns-base-sms | 短信发送模块(对接阿里云短信) |
| guns-base-sms | 短信发送模块(对接阿里云短信) |
| guns-base-third-login | 第三方登录 |
| guns-base-timers | 分布式任务调度执行器 |
| guns-base-timers | 分布式任务调度执行器 |
| guns-sys | guns系统管理的基础业务模块 |
| guns-sys | guns系统管理的基础业务模块 |
| guns-vip-gen | guns代码生成器模块 |
| guns-vip-gen | guns代码生成器模块 |
...
...
guns-base-third-login/README.md
deleted
100644 → 0
View file @
00e6f2a5
### Guns第三方登录,接入qq和码云登录
### 配置在cn.stylefeng.guns.oauth.modular.factory.OAuthRequestFactory里边
\ No newline at end of file
guns-base-third-login/pom.xml
deleted
100644 → 0
View file @
00e6f2a5
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
cn.stylefeng
</groupId>
<artifactId>
guns-vip
</artifactId>
<version>
1.0.0
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
<artifactId>
guns-base-third-login
</artifactId>
<packaging>
jar
</packaging>
<dependencies>
<!--基础组件-->
<dependency>
<groupId>
cn.stylefeng
</groupId>
<artifactId>
guns-sys
</artifactId>
<version>
1.0.0
</version>
</dependency>
<!--第三方登录-->
<dependency>
<groupId>
me.zhyd.oauth
</groupId>
<artifactId>
JustAuth
</artifactId>
<version>
1.6.0-beta
</version>
</dependency>
</dependencies>
<build>
<finalName>
${project.artifactId}
</finalName>
</build>
</project>
guns-base-third-login/src/main/java/cn/stylefeng/guns/oauth/config/OAuthLoginConfig.java
deleted
100644 → 0
View file @
00e6f2a5
package
cn
.
stylefeng
.
guns
.
oauth
.
config
;
import
org.springframework.context.annotation.Configuration
;
/**
* 第三方登录配置
*
* @author fengshuonan
* @Date 2019/6/9 16:46
*/
@Configuration
public
class
OAuthLoginConfig
{
}
guns-base-third-login/src/main/resources/META-INF/spring.factories
deleted
100644 → 0
View file @
00e6f2a5
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cn.stylefeng.guns.oauth.config.OAuthLoginConfig
\ No newline at end of file
guns-sys/pom.xml
View file @
8aeefde2
...
@@ -24,6 +24,13 @@
...
@@ -24,6 +24,13 @@
<version>
1.0.0
</version>
<version>
1.0.0
</version>
</dependency>
</dependency>
<!-- 第三方登录-->
<dependency>
<groupId>
me.zhyd.oauth
</groupId>
<artifactId>
JustAuth
</artifactId>
<version>
1.6.0-beta
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/core/exception
/OAuthExceptionEnum.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/core/exception/oauth
/OAuthExceptionEnum.java
View file @
8aeefde2
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
cn
.
stylefeng
.
guns
.
oauth
.
core
.
exception
;
package
cn
.
stylefeng
.
guns
.
sys
.
core
.
exception
.
oauth
;
import
cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnum
;
import
cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnum
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/core/exception
/OAuthLoginException.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/core/exception/oauth
/OAuthLoginException.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
core
.
exception
;
package
cn
.
stylefeng
.
guns
.
sys
.
core
.
exception
.
oauth
;
import
cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnum
;
import
cn.stylefeng.roses.kernel.model.exception.AbstractBaseExceptionEnum
;
import
cn.stylefeng.roses.kernel.model.exception.ServiceException
;
import
cn.stylefeng.roses.kernel.model.exception.ServiceException
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/core/shiro
/LoginType.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/core/shiro/oauth
/LoginType.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
core
.
shiro
;
package
cn
.
stylefeng
.
guns
.
sys
.
core
.
shiro
.
oauth
;
/**
/**
* 登录类型
* 登录类型
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/core/shiro
/OAuthToken.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/core/shiro/oauth
/OAuthToken.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
core
.
shiro
;
package
cn
.
stylefeng
.
guns
.
sys
.
core
.
shiro
.
oauth
;
import
lombok.Data
;
import
lombok.Data
;
import
org.apache.shiro.authc.UsernamePasswordToken
;
import
org.apache.shiro.authc.UsernamePasswordToken
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/core/shiro
/matcher/WithOAuthTokenMatcher.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/core/shiro/oauth
/matcher/WithOAuthTokenMatcher.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
core
.
shiro
.
matcher
;
package
cn
.
stylefeng
.
guns
.
sys
.
core
.
shiro
.
oauth
.
matcher
;
import
cn.stylefeng.guns.
oauth.core.shiro
.LoginType
;
import
cn.stylefeng.guns.
sys.core.shiro.oauth
.LoginType
;
import
cn.stylefeng.guns.
oauth.core.shiro
.OAuthToken
;
import
cn.stylefeng.guns.
sys.core.shiro.oauth
.OAuthToken
;
import
org.apache.shiro.authc.AuthenticationInfo
;
import
org.apache.shiro.authc.AuthenticationInfo
;
import
org.apache.shiro.authc.AuthenticationToken
;
import
org.apache.shiro.authc.AuthenticationToken
;
import
org.apache.shiro.authc.credential.HashedCredentialsMatcher
;
import
org.apache.shiro.authc.credential.HashedCredentialsMatcher
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/controller/OAuthController.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/controller/OAuthController.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
controller
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
controller
;
import
cn.stylefeng.guns.oauth.modular.service.LoginService
;
import
cn.stylefeng.guns.oauth.modular.service.OauthUserInfoService
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroKit
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroKit
;
import
cn.stylefeng.guns.sys.modular.third.factory.OAuthRequestFactory
;
import
cn.stylefeng.guns.sys.modular.third.service.LoginService
;
import
cn.stylefeng.guns.sys.modular.third.service.OauthUserInfoService
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
import
cn.stylefeng.roses.core.base.controller.BaseController
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
me.zhyd.oauth.model.AuthResponse
;
import
me.zhyd.oauth.model.AuthResponse
;
...
@@ -18,8 +19,6 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
...
@@ -18,8 +19,6 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.IOException
;
import
static
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
factory
.
OAuthRequestFactory
.
getAuthRequest
;
/**
/**
* OAuth统一回调地址
* OAuth统一回调地址
*
*
...
@@ -45,7 +44,7 @@ public class OAuthController extends BaseController {
...
@@ -45,7 +44,7 @@ public class OAuthController extends BaseController {
*/
*/
@RequestMapping
(
"/render/{source}"
)
@RequestMapping
(
"/render/{source}"
)
public
void
renderAuth
(
@PathVariable
(
"source"
)
String
source
,
HttpServletResponse
response
)
throws
IOException
{
public
void
renderAuth
(
@PathVariable
(
"source"
)
String
source
,
HttpServletResponse
response
)
throws
IOException
{
AuthRequest
authRequest
=
getAuthRequest
(
source
);
AuthRequest
authRequest
=
OAuthRequestFactory
.
getAuthRequest
(
source
);
response
.
sendRedirect
(
authRequest
.
authorize
());
response
.
sendRedirect
(
authRequest
.
authorize
());
}
}
...
@@ -59,7 +58,7 @@ public class OAuthController extends BaseController {
...
@@ -59,7 +58,7 @@ public class OAuthController extends BaseController {
public
String
callback
(
@PathVariable
(
"source"
)
String
source
,
@RequestParam
(
"code"
)
String
code
,
RedirectAttributes
model
)
{
public
String
callback
(
@PathVariable
(
"source"
)
String
source
,
@RequestParam
(
"code"
)
String
code
,
RedirectAttributes
model
)
{
//通过回调的code,请求对应的oauth server获取用户基本信息和token
//通过回调的code,请求对应的oauth server获取用户基本信息和token
AuthRequest
authRequest
=
getAuthRequest
(
source
);
AuthRequest
authRequest
=
OAuthRequestFactory
.
getAuthRequest
(
source
);
AuthResponse
authResponse
=
authRequest
.
login
(
code
);
AuthResponse
authResponse
=
authRequest
.
login
(
code
);
AuthUser
oauthUser
=
(
AuthUser
)
authResponse
.
getData
();
AuthUser
oauthUser
=
(
AuthUser
)
authResponse
.
getData
();
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/entity/OauthUserInfo.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/entity/OauthUserInfo.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
entity
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/factory/OAuthRequestFactory.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/factory/OAuthRequestFactory.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
factory
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
factory
;
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.config.AuthConfig
;
import
me.zhyd.oauth.exception.AuthException
;
import
me.zhyd.oauth.exception.AuthException
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/factory/OAuthUserInfoFactory.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/factory/OAuthUserInfoFactory.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
factory
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
factory
;
import
cn.stylefeng.guns.
oauth.modular
.entity.OauthUserInfo
;
import
cn.stylefeng.guns.
sys.modular.third
.entity.OauthUserInfo
;
import
cn.stylefeng.guns.sys.core.constant.Const
;
import
cn.stylefeng.guns.sys.core.constant.Const
;
import
cn.stylefeng.guns.sys.core.constant.state.ManagerStatus
;
import
cn.stylefeng.guns.sys.core.constant.state.ManagerStatus
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroKit
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroKit
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/mapper/OauthUserInfoMapper.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/mapper/OauthUserInfoMapper.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
mapper
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
mapper
;
import
cn.stylefeng.guns.
oauth.modular
.entity.OauthUserInfo
;
import
cn.stylefeng.guns.
sys.modular.third
.entity.OauthUserInfo
;
import
cn.stylefeng.guns.
oauth.modular
.model.params.OauthUserInfoParam
;
import
cn.stylefeng.guns.
sys.modular.third
.model.params.OauthUserInfoParam
;
import
cn.stylefeng.guns.
oauth.modular
.model.result.OauthUserInfoResult
;
import
cn.stylefeng.guns.
sys.modular.third
.model.result.OauthUserInfoResult
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/mapper/mapping/OauthUserInfoMapper.xml
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/mapper/mapping/OauthUserInfoMapper.xml
View file @
8aeefde2
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.stylefeng.guns.
oauth.modular
.mapper.OauthUserInfoMapper"
>
<mapper
namespace=
"cn.stylefeng.guns.
sys.modular.third
.mapper.OauthUserInfoMapper"
>
<!-- 通用查询映射结果 -->
<!-- 通用查询映射结果 -->
<resultMap
id=
"BaseResultMap"
type=
"cn.stylefeng.guns.
oauth.modular
.entity.OauthUserInfo"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.stylefeng.guns.
sys.modular.third
.entity.OauthUserInfo"
>
<id
column=
"oauth_id"
property=
"oauthId"
/>
<id
column=
"oauth_id"
property=
"oauthId"
/>
<result
column=
"user_id"
property=
"userId"
/>
<result
column=
"user_id"
property=
"userId"
/>
<result
column=
"nick_name"
property=
"nickName"
/>
<result
column=
"nick_name"
property=
"nickName"
/>
...
@@ -29,25 +29,25 @@
...
@@ -29,25 +29,25 @@
</sql>
</sql>
<select
id=
"customList"
resultType=
"cn.stylefeng.guns.
oauth.modular.model.result.OauthUserInfoResult"
parameterType=
"cn.stylefeng.guns.oauth.modular
.model.params.OauthUserInfoParam"
>
<select
id=
"customList"
resultType=
"cn.stylefeng.guns.
sys.modular.third.model.result.OauthUserInfoResult"
parameterType=
"cn.stylefeng.guns.sys.modular.third
.model.params.OauthUserInfoParam"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from oauth_user_info where 1 = 1
from oauth_user_info where 1 = 1
</select>
</select>
<select
id=
"customMapList"
resultType=
"map"
parameterType=
"cn.stylefeng.guns.
oauth.modular
.model.params.OauthUserInfoParam"
>
<select
id=
"customMapList"
resultType=
"map"
parameterType=
"cn.stylefeng.guns.
sys.modular.third
.model.params.OauthUserInfoParam"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from oauth_user_info where 1 = 1
from oauth_user_info where 1 = 1
</select>
</select>
<select
id=
"customPageList"
resultType=
"cn.stylefeng.guns.
oauth.modular.model.result.OauthUserInfoResult"
parameterType=
"cn.stylefeng.guns.oauth.modular
.model.params.OauthUserInfoParam"
>
<select
id=
"customPageList"
resultType=
"cn.stylefeng.guns.
sys.modular.third.model.result.OauthUserInfoResult"
parameterType=
"cn.stylefeng.guns.sys.modular.third
.model.params.OauthUserInfoParam"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from oauth_user_info where 1 = 1
from oauth_user_info where 1 = 1
</select>
</select>
<select
id=
"customPageMapList"
resultType=
"map"
parameterType=
"cn.stylefeng.guns.
oauth.modular
.model.params.OauthUserInfoParam"
>
<select
id=
"customPageMapList"
resultType=
"map"
parameterType=
"cn.stylefeng.guns.
sys.modular.third
.model.params.OauthUserInfoParam"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from oauth_user_info where 1 = 1
from oauth_user_info where 1 = 1
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/model/params/OauthUserInfoParam.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/model/params/OauthUserInfoParam.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
model
.
params
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
model
.
params
;
import
lombok.Data
;
import
lombok.Data
;
import
cn.stylefeng.roses.kernel.model.validator.BaseValidatingParam
;
import
cn.stylefeng.roses.kernel.model.validator.BaseValidatingParam
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/model/result/OauthUserInfoResult.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/model/result/OauthUserInfoResult.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
model
.
result
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
model
.
result
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.Date
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/service/LoginService.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/service/LoginService.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
service
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
service
;
import
me.zhyd.oauth.model.AuthUser
;
import
me.zhyd.oauth.model.AuthUser
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/service/OauthUserInfoService.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/service/OauthUserInfoService.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
service
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
service
;
import
cn.stylefeng.guns.base.pojo.page.LayuiPageInfo
;
import
cn.stylefeng.guns.base.pojo.page.LayuiPageInfo
;
import
cn.stylefeng.guns.
oauth.modular
.entity.OauthUserInfo
;
import
cn.stylefeng.guns.
sys.modular.third
.entity.OauthUserInfo
;
import
cn.stylefeng.guns.
oauth.modular
.model.params.OauthUserInfoParam
;
import
cn.stylefeng.guns.
sys.modular.third
.model.params.OauthUserInfoParam
;
import
cn.stylefeng.guns.
oauth.modular
.model.result.OauthUserInfoResult
;
import
cn.stylefeng.guns.
sys.modular.third
.model.result.OauthUserInfoResult
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
import
java.util.List
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/service/impl/DefaultLoginService.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/service/impl/DefaultLoginService.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
service
.
impl
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
service
.
impl
;
import
cn.stylefeng.guns.base.shiro.ShiroUser
;
import
cn.stylefeng.guns.base.shiro.ShiroUser
;
import
cn.stylefeng.guns.oauth.core.exception.OAuthExceptionEnum
;
import
cn.stylefeng.guns.sys.core.exception.oauth.OAuthExceptionEnum
;
import
cn.stylefeng.guns.oauth.core.exception.OAuthLoginException
;
import
cn.stylefeng.guns.sys.core.exception.oauth.OAuthLoginException
;
import
cn.stylefeng.guns.oauth.core.shiro.OAuthToken
;
import
cn.stylefeng.guns.oauth.modular.entity.OauthUserInfo
;
import
cn.stylefeng.guns.oauth.modular.factory.OAuthUserInfoFactory
;
import
cn.stylefeng.guns.oauth.modular.service.LoginService
;
import
cn.stylefeng.guns.oauth.modular.service.OauthUserInfoService
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroKit
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroKit
;
import
cn.stylefeng.guns.sys.core.shiro.oauth.OAuthToken
;
import
cn.stylefeng.guns.sys.modular.system.entity.User
;
import
cn.stylefeng.guns.sys.modular.system.entity.User
;
import
cn.stylefeng.guns.sys.modular.system.service.UserService
;
import
cn.stylefeng.guns.sys.modular.system.service.UserService
;
import
cn.stylefeng.guns.sys.modular.third.entity.OauthUserInfo
;
import
cn.stylefeng.guns.sys.modular.third.factory.OAuthUserInfoFactory
;
import
cn.stylefeng.guns.sys.modular.third.service.LoginService
;
import
cn.stylefeng.guns.sys.modular.third.service.OauthUserInfoService
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
me.zhyd.oauth.model.AuthUser
;
import
me.zhyd.oauth.model.AuthUser
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
guns-
base-third-login/src/main/java/cn/stylefeng/guns/oauth/modular
/service/impl/OauthUserInfoServiceImpl.java
→
guns-
sys/src/main/java/cn/stylefeng/guns/sys/modular/third
/service/impl/OauthUserInfoServiceImpl.java
View file @
8aeefde2
package
cn
.
stylefeng
.
guns
.
oauth
.
modular
.
service
.
impl
;
package
cn
.
stylefeng
.
guns
.
sys
.
modular
.
third
.
service
.
impl
;
import
cn.stylefeng.guns.base.pojo.page.LayuiPageFactory
;
import
cn.stylefeng.guns.base.pojo.page.LayuiPageFactory
;
import
cn.stylefeng.guns.base.pojo.page.LayuiPageInfo
;
import
cn.stylefeng.guns.base.pojo.page.LayuiPageInfo
;
import
cn.stylefeng.guns.
oauth.modular
.entity.OauthUserInfo
;
import
cn.stylefeng.guns.
sys.modular.third
.entity.OauthUserInfo
;
import
cn.stylefeng.guns.
oauth.modular
.mapper.OauthUserInfoMapper
;
import
cn.stylefeng.guns.
sys.modular.third
.mapper.OauthUserInfoMapper
;
import
cn.stylefeng.guns.
oauth.modular
.model.params.OauthUserInfoParam
;
import
cn.stylefeng.guns.
sys.modular.third
.model.params.OauthUserInfoParam
;
import
cn.stylefeng.guns.
oauth.modular
.model.result.OauthUserInfoResult
;
import
cn.stylefeng.guns.
sys.modular.third
.model.result.OauthUserInfoResult
;
import
cn.stylefeng.guns.
oauth.modular
.service.OauthUserInfoService
;
import
cn.stylefeng.guns.
sys.modular.third
.service.OauthUserInfoService
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
import
cn.stylefeng.roses.core.util.ToolUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
guns-vip-main/pom.xml
View file @
8aeefde2
...
@@ -31,13 +31,6 @@
...
@@ -31,13 +31,6 @@
<version>
1.0.0
</version>
<version>
1.0.0
</version>
</dependency>
</dependency>
<!-- 第三方登录 -->
<dependency>
<groupId>
cn.stylefeng
</groupId>
<artifactId>
guns-base-third-login
</artifactId>
<version>
1.0.0
</version>
</dependency>
<!-- 数据源容器-->
<!-- 数据源容器-->
<dependency>
<dependency>
<groupId>
cn.stylefeng
</groupId>
<groupId>
cn.stylefeng
</groupId>
...
...
guns-vip-main/src/main/java/cn/stylefeng/guns/config/web/ShiroConfig.java
View file @
8aeefde2
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*/
*/
package
cn
.
stylefeng
.
guns
.
config
.
web
;
package
cn
.
stylefeng
.
guns
.
config
.
web
;
import
cn.stylefeng.guns.
oauth.core.shiro
.matcher.WithOAuthTokenMatcher
;
import
cn.stylefeng.guns.
sys.core.shiro.oauth
.matcher.WithOAuthTokenMatcher
;
import
cn.stylefeng.guns.sys.core.constant.Const
;
import
cn.stylefeng.guns.sys.core.constant.Const
;
import
cn.stylefeng.guns.sys.core.properties.GunsProperties
;
import
cn.stylefeng.guns.sys.core.properties.GunsProperties
;
import
cn.stylefeng.guns.sys.core.shiro.GunsUserFilter
;
import
cn.stylefeng.guns.sys.core.shiro.GunsUserFilter
;
...
...
pom.xml
View file @
8aeefde2
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
<module>
guns-base-sms
</module>
<module>
guns-base-sms
</module>
<module>
guns-base-email
</module>
<module>
guns-base-email
</module>
<module>
guns-base-timers
</module>
<module>
guns-base-timers
</module>
<module>
guns-base-third-login
</module>
<module>
guns-sys
</module>
<module>
guns-sys
</module>
<module>
guns-vip-gen
</module>
<module>
guns-vip-gen
</module>
<module>
guns-vip-main
</module>
<module>
guns-vip-main
</module>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment