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
3a27af98
Commit
3a27af98
authored
Jun 11, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开启第三方登录
parent
91722713
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
guns-sys/src/main/webapp/pages/common/_footer.html
+2
-2
guns-vip-main/pom.xml
+7
-7
guns-vip-main/src/main/java/cn/stylefeng/guns/config/ShiroConfig.java
+5
-5
No files found.
guns-sys/src/main/webapp/pages/common/_footer.html
View file @
3a27af98
@/* 页脚 */
<div
class=
"layui-footer"
>
Copyright © 201
8
<a
href=
"https://www.stylefeng.cn"
target=
"_blank"
>
stylefeng
</a>
All rights reserved.
<span
class=
"pull-right"
>
Version
Vip 1
.0
</span>
Copyright © 201
9
<a
href=
"https://www.stylefeng.cn"
target=
"_blank"
>
stylefeng
</a>
All rights reserved.
<span
class=
"pull-right"
>
Version
企业版 v2
.0
</span>
</div>
@/* 手机屏幕遮罩层 */
...
...
guns-vip-main/pom.xml
View file @
3a27af98
...
...
@@ -31,6 +31,13 @@
<version>
1.0.0
</version>
</dependency>
<!-- 第三方登录 -->
<dependency>
<groupId>
cn.stylefeng
</groupId>
<artifactId>
guns-base-third-login
</artifactId>
<version>
1.0.0
</version>
</dependency>
<!-- 分布式job -->
<!-- <dependency>-->
<!-- <groupId>cn.stylefeng</groupId>-->
...
...
@@ -38,13 +45,6 @@
<!-- <version>1.0.0</version>-->
<!-- </dependency>-->
<!-- 第三方登录 -->
<!-- <dependency>-->
<!-- <groupId>cn.stylefeng</groupId>-->
<!-- <artifactId>guns-base-third-login</artifactId>-->
<!-- <version>1.0.0</version>-->
<!-- </dependency>-->
</dependencies>
<build>
...
...
guns-vip-main/src/main/java/cn/stylefeng/guns/config/ShiroConfig.java
View file @
3a27af98
...
...
@@ -15,12 +15,12 @@
*/
package
cn
.
stylefeng
.
guns
.
config
;
import
cn.stylefeng.guns.oauth.core.shiro.matcher.WithOAuthTokenMatcher
;
import
cn.stylefeng.guns.sys.core.constant.Const
;
import
cn.stylefeng.guns.sys.core.properties.GunsProperties
;
import
cn.stylefeng.guns.sys.core.shiro.GunsUserFilter
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroDbRealm
;
import
cn.stylefeng.guns.sys.core.shiro.ShiroKit
;
import
org.apache.shiro.authc.credential.HashedCredentialsMatcher
;
import
org.apache.shiro.cache.CacheManager
;
import
org.apache.shiro.cache.ehcache.EhCacheManager
;
import
org.apache.shiro.codec.Base64
;
...
...
@@ -111,12 +111,12 @@ public class ShiroConfig {
*/
@Bean
public
ShiroDbRealm
shiroDbRealm
()
{
HashedCredentialsMatcher
hashedCredentialsMatcher
=
new
HashedCredentials
Matcher
();
hashedCredentials
Matcher
.
setHashAlgorithmName
(
ShiroKit
.
hashAlgorithmName
);
hashedCredentials
Matcher
.
setHashIterations
(
ShiroKit
.
hashIterations
);
WithOAuthTokenMatcher
withOAuthTokenMatcher
=
new
WithOAuthToken
Matcher
();
withOAuthToken
Matcher
.
setHashAlgorithmName
(
ShiroKit
.
hashAlgorithmName
);
withOAuthToken
Matcher
.
setHashIterations
(
ShiroKit
.
hashIterations
);
ShiroDbRealm
shiroDbRealm
=
new
ShiroDbRealm
();
shiroDbRealm
.
setCredentialsMatcher
(
hashedCredentials
Matcher
);
shiroDbRealm
.
setCredentialsMatcher
(
withOAuthToken
Matcher
);
return
shiroDbRealm
;
}
...
...
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