Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthenticationHandler验证顺序问题 #39

Closed
louisliaoxh1989 opened this issue Nov 17, 2017 · 2 comments
Closed

AuthenticationHandler验证顺序问题 #39

louisliaoxh1989 opened this issue Nov 17, 2017 · 2 comments
Labels

Comments

@louisliaoxh1989
Copy link

请教一个问题,测试了下自定义认证UsernamePasswordSystemAuthenticationHandler会在QueryDatabaseAuthenticationHandler 之后,这样的话如果QueryDatabaseAuthenticationHandler 验证通过,就不会到UsernamePasswordSystemAuthenticationHandler 这个有办法处理吗?

@kawhii
Copy link
Owner

kawhii commented Nov 17, 2017

在java里有个setOrder,在配置文件有个order,越小匹配优先,目前配置的UsernamePasswordSystemAuthenticationHandler是在前置的

@kawhii kawhii closed this as completed Nov 17, 2017
@louisliaoxh1989
Copy link
Author

我这里只是改了下数据库为mysql,测试时发现先到QueryDatabaseAuthenticationHandler去验证,通过了就没有到UsernamePasswordSystemAuthenticationHandler,这是正常的吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants