Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jojozhai committed Sep 25, 2017
1 parent ed1c03a commit f87e7a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions imooc-security/doc/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ create table persistent_logins (username varchar(64) not null,
token varchar(64) not null,
last_used timestamp not null);
-- 社交登录用的表
create table UserConnection (userId varchar(255) not null,
create table imooc_UserConnection (userId varchar(255) not null,
providerId varchar(255) not null,
providerUserId varchar(255),
rank int not null,
Expand All @@ -16,4 +16,4 @@ create table UserConnection (userId varchar(255) not null,
refreshToken varchar(512),
expireTime bigint,
primary key (userId, providerId, providerUserId));
create unique index UserConnectionRank on UserConnection(userId, providerId, rank);
create unique index UserConnectionRank on imooc_UserConnection(userId, providerId, rank);
2 changes: 1 addition & 1 deletion imooc-security/doc/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@

5.如果需要社交登录功能,需要以下额外的步骤
1).配置appId和appSecret
2).创建并配置用户注册页面,并实现注册服务,注意在服务中要调用ProviderSignInUtils的doPostSignUp方法。
2).创建并配置用户注册页面,并实现注册服务(需要配置访问权限),注意在服务中要调用ProviderSignInUtils的doPostSignUp方法。
3).添加SocialUserDetailsService接口实现
4).创建社交登录用的表 (参见 db.sql)

0 comments on commit f87e7a7

Please sign in to comment.