security's People
Forkers
wjymo ssr0413 wendongxu newdreama fruiter76 creamweiwei tandingbo lookbbs tangmin721 zjg23 taurusnail leechenxiang oldway520 dingdangmao qialie 382517195 cennac longcho wusong4232 way789 undead1102 yangwensheng123 superblogs lycaste wangjiandev troychn we-lee idreamlands qypapple g414n xjc520520 renxinggit zgjsyxwj soulmachine 165056821 tomcmd ganlvqiao lhrl kelvinfanxian nutguo elegance earthchen ericql apple006 809662683 qi-zheng sheldonfa bigdataliu congleiwang smartdriver001 heyucool happytomas xiaodaom eddylaili longfeizheng andy-ffeng fengqiangboy chenlovmein yangyz charlesyao arch-team starway writingbug theonelee xiaohongbo407 duang314520 xyzuncle yifei337 kimmy-wang kernelmix ygr15893000 mtg272 tfgzs mr0221 yefeisnima yinchunguang kentun dooleencloud slowslicing moodd zhangdengye king-pan kannon007 hahakea keithfu wyucheng caedmonjiang dwj1979 aipan xiaozhouzhoua suliiven programmer-luxw lhy1234 13544020124 yxf006 marslyu huang6349 spunk166 yoolin xinghen001security's Issues
app模块为什么还要form表单登录的配置呢
有没有qq可用的appid啊
qq绑定,解绑问题
qq绑定回调地址,跟登入回调地址不同,绑定时qq报redirect uri is illegal(100010)错误,这个怎么解决?
APP的鉴权模式下 如何展示swagger-ui
APP的鉴权模式下 如何展示swagger-ui
在代码中配置了JdbcUsersConnectionRepository但是实际没有生效
在SocialConfig中配置了JdbcUsersConnectionRepository,但是运行时SocialAuthenticationProvider中的UsersConnectionRepositor是InMemoryUsersConnectionRepository!
能否提供`imooc-security-authorize`模块那五张表的建表语句sql
jojo老师您好,能否提供imooc-security-authorize
模块那五张表的建表语句sql呢,没有那五张表,最后的权限部分运行不起来,谢谢!
还是第五章的问题
master的 test项目下pom.xml文件 中文格式不对
master的 test项目下pom.xml文件 中文格式不对
bug提交 springsocial1.1.6.RELEASE 不兼容 mysql 8
原因是 UserConnection 表中的 rank 字段 在mysql 8被 新增为保留关键字
所以无法使用 mysql8
报错sql:select coalesce(max(rank) + 1, 1) as rank from UserConnection where userId = ? and providerId = ?
AuthenticationManager无法注入,是要自己实现么
@Autowired
private AuthenticationManager authenticationManager;
关于6-7重构社交登陆
jojo老师,我有一个疑问,就是您在视频中是如果用户没登陆就去登陆的接口
@RequestMapping("/social/signUp")
@ResponseStatus(HttpStatus.UNAUTHORIZED)
public SocialUserInfo socialInfo(HttpServletRequest request){
Connection<?> connection = providerSignInUtils.getConnectionFromSession(new ServletWebRequest(request));
SocialUserInfo socialUserInfo = new SocialUserInfo();
ConnectionKey key = connection.getKey();
socialUserInfo.setProviderId(key.getProviderId());
socialUserInfo.setProviderUserId(key.getProviderUserId());
socialUserInfo.setNickName(connection.getDisplayName());
socialUserInfo.getHeadImg();
appSignUpUtils.saveConnectionData(new ServletWebRequest(request), connection.createData());
return socialUserInfo;
}
这是接口,关键是如果是app的话根本无法跳转到这里,然而在这个方法中您使用的是providerSignInUtils.getConnectionFromSession(new ServletWebRequest(request));来获取,此时app已经输入第二次发送请求了,您是在测试工具上应该也会带上session,所以获取到了第一次的connection,如果说是app呢?会拿得到吗?估计有点悬...
其实我有个好主意,利用认证错误处理器来做,这个时候还是属于第一次请求,我可以通过这个 providerSignInUtils来获取到,然后保存到redis中!然后写回去用户信息!这样也就不会发生跳转了!当错误处理器处理后,他也不会跳转页面!因为他会抛出 SocialAuthenticationRedirectException 这个类型i的异常,我还可以检查是这个异常就这样处理!
请问示例的qq.app-id和qq.app-secret是什么
rt
能否讲解一下 普通请求的过滤流程 (非登陆请求)
你好jojo老师 能否讲解一下 普通请求的过滤流程 (非登陆请求)
我想在每次请求 的返回里加上更新的token(如果需要更新的话) 不知道如何下手 希望指点 谢谢
第5章看到QQ登录时候 一直获取不到userId
imooc-security-authorize这个模块怎么运行
我修改了pom文件把imooc-security-authorize模块加到主工程了,删掉了注释,但是运行起来各种问题。所以请教下
authorize
brower依赖authorize模块,运行不起来。怎么回事啊
qq登陆MyUserDetailsService 配置不起作用
当我使用QQ授权登录时,它不进入loadUserByUserId里面;第一次授权成功后,跳转到注册界面,注册后UserConnection表里存在数据;但是第二次授权登录时,还是会跳转到注册界面
我不希望第三方授权认证的时候跳转到注册页面,因此做了如下的配置
`
1、创建一个类实现ConnectionSignUp 接口并重写方法
public class DemoConnectionSignUp implements ConnectionSignUp {
// 并重写execute()方法即可
public String execute(Connection<?> connection) {
return connection.getDisplayName();
}
}
然后在Social的配置类里面做修改:SocialConfig
第一步:先注入
@Autowired(required = false)
private ConnectionSignUp connectionSignUp;
第二步:修改getUsersConnectionRepository()方法
if(connectionSignUp != null) {
repository.setConnectionSignUp(connectionSignUp);
}`
可是做了这些配置后,使用QQ授权登录后还是会跳转到注册界面?
The clientId property cannot be null
项目启动报错是什么原因呢,Failed to instantiate [org.springframework.social.connect.ConnectionFactoryLocator]: Factory method 'connectionFactoryLocator' threw exception; nested exception is java.lang.IllegalArgumentException: The clientId property cannot be null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.